firmware/testing
2019-03-27 11:00:43 -04:00
..
data Add test case from SomberNight 2018-11-08 10:50:47 -05:00
debug Cleanup gitignores; put closed to used directory 2018-11-26 09:00:11 -05:00
devtest BIP39 passphrase additions, no UX yet 2019-03-27 11:00:43 -04:00
.gitignore Cleanup gitignores; put closed to used directory 2018-11-26 09:00:01 -05: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
bip39-vectors.json BIP39 passphrase additions, no UX yet 2019-03-27 11:00:43 -04:00
ckcc_protocol Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
conftest.py BIP39 passphrase additions, no UX yet 2019-03-27 11:00:43 -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 BIP39 passphrase additions, no UX yet 2019-03-27 11:00:43 -04:00
test_addr.py Spelling: it's -> its 2018-08-29 14:02:28 -05:00
test_attended.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test_bip39pw.py BIP39 passphrase additions, no UX yet 2019-03-27 11:00:43 -04:00
test_devtest.py Add SLIP132 support and new testcases 2018-09-11 10:13:10 -04:00
test_msg.py Making whole firmware public with single, signed commit. 2018-07-24 14:07:33 -04:00
test_pincodes.py passing bad_logins 2018-12-12 11:26:27 -05:00
test_sign.py Allow user to change max fee (as percent of outputs) and/or disable it 2018-11-09 09:41:42 -05:00
test_usb.py bugfix 2018-07-25 09:31:49 -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