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
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
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