2
0
Fork 0
mirror of https://github.com/Tonejs/Tone.js synced 2025-02-15 20:18:24 +00:00
Tone.js/test/README.md

23 lines
457 B
Markdown
Raw Normal View History

2019-11-16 17:21:16 -05:00
Both Chrome and Firefox are required to run the run the full set of tests.
2015-10-21 13:14:19 -04:00
2019-11-16 17:21:16 -05:00
## Basic
2016-03-29 19:42:31 -04:00
2019-11-16 17:21:16 -05:00
To run tests in both browsers headlessly and report the results:
2016-03-29 19:42:31 -04:00
2019-11-16 17:21:16 -05:00
`npm run test`
2015-10-21 13:14:19 -04:00
2019-11-16 17:21:16 -05:00
## Browser
2015-10-21 13:14:19 -04:00
2019-11-16 17:21:16 -05:00
To run tests in a Chrome browser not in headless mode which allows you to debug from the console:
2015-10-21 13:14:19 -04:00
2019-11-16 17:21:16 -05: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`