firmware/testing
2018-07-24 14:07:33 -04:00
..
data Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
debug Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
devtest Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
.gitignore Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
api.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
bech32.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
ckcc_protocol Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
conftest.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
helpers.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
psbt.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
pytest.ini Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
README.md Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
requirements.txt Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test_addr.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test_attended.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test_devtest.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test_msg.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test_sign.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test_usb.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test_ux.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test-wallet-backup.txt Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00

Testing Code

None of this code ships on the product itself, but it does get used for testing purposes.

Background

  • pytest is used to track test cases and fixtures, etc
  • most test code is desktop, but it validates stuff from/to the device
  • some tests might only be possible in 'devmode'
  • some tests may be destructive for funds/seeds/wallets
  • most unit tests will work only on simulator because hooks are too dangerous in product

Fixture Note

  • pass argument "--sim" or "--dev" to select simulator or real device
  • will skip tests that are inappropriate