Test runner utility
  • JavaScript 100%
Find a file
2026-04-30 20:31:27 +02:00
bin Add a testtool binary 2024-06-25 16:26:12 +02:00
src Update maintainer email 2026-04-30 20:31:27 +02:00
.gitignore Initial commit, split from @codemirror/buildhelper 2022-05-17 13:20:54 +02:00
.npmignore Include npmignore file to prevent use of gitignore 2022-05-19 14:15:02 +02:00
LICENSE Add missing license file 2026-03-18 10:54:55 +01:00
package.json Update maintainer email 2026-04-30 20:31:27 +02:00
README.md Update repository links 2026-03-18 10:56:08 +01:00

@marijn/testtool

Utility for running collections of Mocha test files that contain both Node-based and browser-based tests.

API

  • gatherTests(dirs: string[]) → {tests: string[], browserTests: string[]}
    Find test/test-*.js and test/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 with grep, or configuring which browsers to run the web tests on.

Community

This is open source software released under an MIT license.

Development happens on Forgejo. Use the bug tracker to report problems.