- Install docker
- To run all tests
./tests/run.sh - To see some options
./test/run.sh -h; - To run tests with graphic output from emulator, use
-goption. Note that macOS needs some further configuration. - To limit tests to subset of methods use
-i getPublicKey,getAddress
- Create or modify file in
./__fixtures__ - Make sure it is imported in
./__fixtures__/index.js. - Make sure the method you are testing is listed in
travis.ymlto make it run in CI
- Build your custom emulator with debuglink support
cd trezor-firmwarepipenv syncpipenv shellcd corePYOPT=0 pipenv run make build_unix_frozen- You will find
micropythonfile incore/build/unix
- Save it as
trezor-emu-core-v2.[num].[num]. For exampletrezor-emu-core-v2.9.9. Minor and patch numbers don't matter as long as they do not conflict with already existing firmware. - Run tests with
./tests/run.sh -b ~/path-to-emu/trezor-emu-core-v2.9.9 -f 2.9.9
Tests are run with each commit on travis