2018-05-04 14:57:25 +00:00
|
|
|
# Testing
|
|
|
|
|
2019-10-01 13:07:50 +00:00
|
|
|
We have two types of tests in Core:
|
2018-05-04 14:57:25 +00:00
|
|
|
|
2019-10-01 13:07:50 +00:00
|
|
|
1. Unit tests that are specific to Trezor Core.
|
2024-02-05 10:17:00 +00:00
|
|
|
2. Common tests, which are common to both Trezor Core (Model T, Safe 3) and Legacy (Model one). Device tests belong to this category.
|
2018-05-04 14:57:25 +00:00
|
|
|
|
2024-02-05 10:17:00 +00:00
|
|
|
## Core unit tests
|
2018-05-04 14:57:25 +00:00
|
|
|
|
2024-02-05 10:17:00 +00:00
|
|
|
Unit tests are placed in the `core/tests/` directory.
|
|
|
|
|
|
|
|
To start them, [build unix port](../build/emulator.md) and run the following command from `core/`:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
make test # run all unit test
|
|
|
|
make test TESTOPTS=test_apps.bitcoin.address.py # run a specific test
|
|
|
|
```
|
2018-06-05 21:42:26 +00:00
|
|
|
|
2019-10-01 13:07:50 +00:00
|
|
|
## Common tests
|
2019-08-02 13:58:12 +00:00
|
|
|
|
2019-12-06 08:56:38 +00:00
|
|
|
See the [tests](../../tests/index.md) section.
|