Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Latest commit

 

History

History

tests

End-to-end tests

These tests are implemented in Python and can be executed either using the Speculos emulator or a Ledger Nano S/X. Python dependencies are listed in requirements.txt, install them using pip

pip install -r requirements.txt

Launch with Speculos

First start your application with Speculos

./path/to/speculos.py /path/to/app-boilerplate/bin/app.elf --ontop --sdk 1.6

then in the tests folder run

pytest

Launch with your Nano S/X

To run the tests on your Ledger Nano S/X you also need to install an optional dependency

pip install ledgercomm[hid]

Be sure to have you device connected through USB (without any other software interacting with it) and run

pytest --hid