These tests are implemented in NodeJS and can be executed either using the Speculos emulator or a Ledger Nano S+/X.
NodeJS dependencies are listed in package.json, install them using npm
or yarn
.
npm install
First start your application with Speculos
./path/to/speculos.py /path/to/bin/app.elf --apdu-port 9999 --api-port 40000
then run
npm run test
Be sure to have you device connected through USB (without any other software interacting with it) and run
LEDGER_LIVE_HARDWARE=1 npm run test