2019-11-16 22:21:16 +00:00
|
|
|
Both Chrome and Firefox are required to run the run the full set of tests.
|
2015-10-21 17:14:19 +00:00
|
|
|
|
2019-11-16 22:21:16 +00:00
|
|
|
## Basic
|
2016-03-29 23:42:31 +00:00
|
|
|
|
2019-11-16 22:21:16 +00:00
|
|
|
To run tests in both browsers headlessly and report the results:
|
2016-03-29 23:42:31 +00:00
|
|
|
|
2019-11-16 22:21:16 +00:00
|
|
|
`npm run test`
|
2015-10-21 17:14:19 +00:00
|
|
|
|
2019-11-16 22:21:16 +00:00
|
|
|
## Browser
|
2015-10-21 17:14:19 +00:00
|
|
|
|
2019-11-16 22:21:16 +00:00
|
|
|
To run tests in a Chrome browser not in headless mode which allows you to debug from the console:
|
2015-10-21 17:14:19 +00:00
|
|
|
|
2019-11-16 22:21:16 +00:00
|
|
|
`npm run test:browser`
|
|
|
|
|
|
|
|
## Selective Testing
|
|
|
|
|
|
|
|
To test only an individual file:
|
|
|
|
|
|
|
|
`npm run test --file=Signal`
|
|
|
|
|
|
|
|
Or to run on an entire directory:
|
|
|
|
|
|
|
|
`npm run test --dir=signal`
|