Skip to content

Commit 4653405

Browse files
committed
Added mocha test information to README.md
1 parent c546861 commit 4653405

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

packages/hw-app-ada/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,33 @@ Library for Ledger Hardware Wallets.
77
[Github](https://github.com/LedgerHQ/ledgerjs/),
88
[API Doc](http://ledgerhq.github.io/ledgerjs/),
99
[Ledger Devs Slack](https://ledger-dev.slack.com/)
10+
11+
### Tests
12+
13+
As well as the tests in `@ledgerhq/test`, automated end-to-end tests are provided here using [mocha](https://mochajs.org/).
14+
15+
#### Core Tests
16+
17+
Core tests are provided for testing the base functionality of the device.
18+
19+
First, ensure you have a **test** build installed on the device (see ledger app respository for details). Then run:
20+
21+
```shell
22+
yarn run core-test
23+
```
24+
25+
#### API Tests
26+
27+
These test the production API and can be run either on a production build or headlessly for fully-automated testing.
28+
29+
For tests which require user interaction, ensure you have a standard production build of the app and run:
30+
31+
```shell
32+
yarn run api-test
33+
```
34+
35+
For headless tests, ensure you have a **headless** build installed on the device (see ledger app respository for details). Then run:
36+
37+
```shell
38+
yarn run api-test --headless
39+
```

0 commit comments

Comments
 (0)