eatest
test function for eater
Features
- can run a test file directly on the editor / atom-runner
- each subtests also run in a single process, so faster then
(eater/runner).test
How to use
1. Install
npm install -D eater eatest
2. Write tests
// test/example.jsconst assert = ;const test = ; ; ; ; ; testtimeout = 100; // default timeout is 2000ms;
3. Run
$ eater test/example.js
API
test(name: string, testfn: function)
test.skip(name: string, testfn: function)
- skip the test
test.only(name: string, testfn: function)
- exclude other tests in the same test file
test.fork(name: string, testfn: function)
- run the test in a child process. it is useful to avoid side effect in the test.
test.timeout: number
License
MIT