<commit_before><img src="https://user-images.githubusercontent.com/211411/34776833-6f1ef4da-f618-11e7-8b13-f0697901d6a8.png" height="100" />

## @ledgerhq/hw-app-ada

Library for Ledger Hardware Wallets.

[Github](https://github.com/LedgerHQ/ledgerjs/),
[API Doc](http://ledgerhq.github.io/ledgerjs/),
[Ledger Devs Slack](https://ledger-dev.slack.com/)<commit_msg>Added mocha test information to README.md<commit_after><img src="https://user-images.githubusercontent.com/211411/34776833-6f1ef4da-f618-11e7-8b13-f0697901d6a8.png" height="100" />

## @ledgerhq/hw-app-ada

Library for Ledger Hardware Wallets.

[Github](https://github.com/LedgerHQ/ledgerjs/),
[API Doc](http://ledgerhq.github.io/ledgerjs/),
[Ledger Devs Slack](https://ledger-dev.slack.com/)

### Tests

As well as the tests in `@ledgerhq/test`, automated end-to-end tests are provided here using [mocha](https://mochajs.org/).

#### Core Tests

Core tests are provided for testing the base functionality of the device.

First, ensure you have a **test** build installed on the device (see ledger app respository for details). Then run:

```shell
yarn run core-test
```

#### API Tests

These test the production API and can be run either on a production build or headlessly for fully-automated testing.

For tests which require user interaction, ensure you have a standard production build of the app and run:

```shell
yarn run api-test
```

For headless tests, ensure you have a **headless** build installed on the device (see ledger app respository for details). Then run:

```shell
yarn run api-test --headless
```
{'fraction_non_alphanumeric': 0.13320707070707072, 'fraction_numerical': 0.047979797979797977, 'mean_word_length': 4.763636363636364, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '335594', 'n_tokens_mistral': 588, 'n_tokens_neox': 546, 'n_words': 156}