Tests
Burn tests
These tests are doing a simple read/write operations on the device to see if the hardware can endure high number of flash writes. Meant to be run on the device directly for a long period of time.
Device tests
Device tests are integration tests that can be run against either emulator or on an actual device. You are responsible to provide either an emulator or a device with Debug mode present.
Device tests
The original version of device tests. These tests can be run against both Model One and Model T.
See device-tests.md for instructions how to run it.
UI tests
UI tests use device tests and take screenshots of every screen change and compare them against fixtures.
See ui-tests.md for more info.
Click tests
Click tests are a next-generation of the Device tests. The tests are quite similar, but they are capable of imitating user’s interaction with the screen.
Clear-signing tests
Nightly UI tests that sign the test transactions of the ERC-7730 clear-signing registry with the unsigned dev definitions. They are separate from the device tests, and compare their screens with those of the previous nightly run.
See clear-signing-tests.md for more info.
Fido tests
Implement U2F/FIDO2 tests.
Upgrade tests
These tests test upgrade from one firmware version to another. They initialize an emulator on some specific version and then pass its storage to another version to see if the firmware operates as expected. They use fixtures from https://data.trezor.io/dev/firmware/releases/emulators-new/ which can be downloaded using the download_emulators.sh script.
See the upgrade-tests.md for instructions how to run it.
Persistence tests
These tests test the Persistence mode, which is currently used in the device recovery. These tests launch the emulator themselves and they are capable of restarting or stopping it simulating user’s plugging in or plugging out the device.
Bootloader tests
These tests run the bootloader emulator, one or more runs per test, with explicit startup parameters, and check both the screens and how the run ended. They are located in bootloader_tests/ and have their own conftest.py.
See bootloader-tests.md for instructions how to run it.
Prodtest tests
These tests test the production test firmware (prodtest) CLI against the prodtest emulator. The tests are located in prodtest_tests/ and have their own conftest.py, isolated from the device-test suite.
Run them with:
make -C core test_emu_prodtest