1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 10:58:21 +00:00
trezor-firmware/docs/core/tests/index.md

22 lines
627 B
Markdown
Raw Permalink Normal View History

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.
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
## Core unit tests
2018-05-04 14:57:25 +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-12-06 08:56:38 +00:00
See the [tests](../../tests/index.md) section.