You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These tests are implemented in Python and can be executed either using the [Speculos](https://github.com/LedgerHQ/speculos) emulator or a Ledger Nano S/X/SP.
4
+
5
+
All the commands in this folder are meant to be ran from the `tests` folder, not from the root.
6
+
7
+
Python dependencies are listed in [requirements.txt](requirements.txt), install them using [pip](https://pypi.org/project/pip/)
8
+
9
+
```
10
+
pip install -r requirements.txt
11
+
```
12
+
13
+
## Launch with Speculos
14
+
15
+
Build the app as normal for Liquid testnet network from the root folder. For convenience, you probably want to enable DEBUG:
16
+
17
+
```
18
+
COIN=liquid_testnet DEBUG=1 make
19
+
```
20
+
21
+
Then run all the tests from this folder, specifying the device: nanos, nanox, nanosp, or all:
22
+
23
+
```
24
+
pytest --device yourdevice
25
+
```
26
+
You can enable the screen display with the option `--display`
27
+
28
+
## Launch with your Nano S/X/SP
29
+
30
+
Compile and install the app on your device as normal.
31
+
32
+
To run the tests on your Ledger device you also need to install an optional dependency
33
+
34
+
```
35
+
pip install ledgercomm[hid]
36
+
```
37
+
38
+
Be sure to have you device connected through USB (without any other software interacting with it) and run
0 commit comments