Utility for running collections of Mocha test files that contain both Node-based and browser-based tests.
-
gatherTests
(dirs: string[]) → {tests: string[], browserTests: string[]}
Findtest/test-*.js
andtest/webtest-*.js
in the given directories. -
runTests
(input: {tests: string[], browserTests: string[], browsers: string[], grep?: string}) → Promise<void>
Run the given set of tests, optionally filtering by name withgrep
, or configuring which browsers to run the web tests on.
This is open source software released under an MIT license.
Development happens on GitHub. Use the bug tracker to report problems.