Run multiple testems, output to a single tap file
npm install testem-multi#testem-multi
Run multiple testems, output to a single tap file.
##Install
``sh`
npm install -g testem-multi
##Usage
1.Prepare testem-multi.json
`js`
{
"launch_in_ci" : [
"chrome",
"safari"
],
"files" : [
"examples/1.html",
"examples/2.html"
]
}
2.Execute testem-multi
`sh`
testem-multi
Or use a different file name
`sh`
testem-multi another_testem_multi.json
##Advance
1. Output only failed test
`js`
{
"output" : [
"pass": false,
"fail": true
],
"files" : [
"examples/1.html",
"examples/2.html"
]
}
2. Output code coverage information (istanbul)
`js`
{
"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
3. Stop running tests when there's a failure
`js``
{
"bailOut" : true,
"files" : [
"examples/1.html",
"examples/2.html"
]
}