testem-multi
Run multiple testems, output to a single tap file.
Install
npm install -g testem-multi
Usage
1.Prepare testem-multi.json
"launch_in_ci" : "chrome" "safari" "files" : "examples/1.html" "examples/2.html"
2.Execute testem-multi
testem-multi
Or use a different file name
testem-multi another_testem_multi.json
Advance
- Output only failed test
"output" : "pass": false "fail": true "files" : "examples/1.html" "examples/2.html"
- Output code coverage information (
istanbul
)
"output" : "coverage": "tmp/coverage" "files" : "examples/1.html" "examples/2.html" "routes": "/src": "instumented"
To use code coverage, the code must be instrumented before running testem-multi
- Stop running tests when there's a failure
"bailOut" : true "files" : "examples/1.html" "examples/2.html"