add documentation on how to use ember-exam

This commit is contained in:
Alvin Huang 2019-01-03 23:50:02 -05:00
parent f623b9817e
commit 5425a86058
1 changed files with 17 additions and 0 deletions

View File

@ -60,3 +60,20 @@ Please note: You do not need to run `make start-api`/`yarn run start:api` to run
* `make test` or `yarn run test`
* `make test-view` or `yarn run test:view` to view the tests running in Chrome
#### Running Tests in Parallel
Alternatively, `ember-exam` can be used to split the tests across multiple browser instances for faster results. Most options are the same as `ember test`. To see a full list of options, run `ember exam --help`.
**Note:** The `EMBER_EXAM_PARALLEL` environment variable must be set to override the default `parallel` value of `1` browser instance in [testem.js](./testem.js).
To quickly run the tests across 4 parallel browser instances:
```sh
yarn test-parallel
```
To run manually:
```sh
$ EMBER_EXAM_PARALLEL=true ember exam --split <num> --parallel
```
More ways to split tests can be found in the [ember-exam README.md](https://github.com/trentmwillis/ember-exam/blob/master/README.md).