-
Notifications
You must be signed in to change notification settings - Fork 991
Testing
Yotam Mann edited this page Sep 7, 2018
·
3 revisions
Tone.js has an extensive test suite built on karma, mocha and chai.
To install all testing dependencies:
npm install
To run all tests on Chrome and Firefox using Karma Test Runner:
npm run test
To test an individual file with karma:
npm run test --file=Oscillator
(replace Oscillator
with the name of the test file you'd like to run)
To run all tests in a directory run:
npm run test --dir=core
(replace core
with the name of the directory you'd like to run)
footer