Skip to content

Commit

Permalink
Readme: update for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Mar 29, 2024
1 parent a9264e3 commit daceddb
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ Build the app as normal from the root folder. For convenience, you probably want
DEBUG=1 make
```

Then run all the tests from this folder with:
Then run all the tests from this folder, specifying the device: nanos, nanox, nanosp, stax, or all:

```
pytest
pytest --device yourdevice
```
You can enable the screen display with the option `--display`

## Launch with your Nano S/X
## Launch with your Nano S/X/SP or Stax

Compile and install the app on your device as normal.

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

```
pip install ledgercomm[hid]
Expand All @@ -43,7 +44,5 @@ pip install ledgercomm[hid]
Be sure to have you device connected through USB (without any other software interacting with it) and run

```
pytest --hid
```

Please note that tests that require an automation file are meant for speculos, and will currently hang the test suite.
pytest --device yourdevice --backend ledgercomm
```

0 comments on commit daceddb

Please sign in to comment.