Run multiple testems, output to a single tap file
JavaScript CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
examples
lib
public/testem
test
.gitignore
.jshintrc
README.md
package.json
testem-multi.json
testem.json
tests.tap

README.md

#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

  1. Output only failed test
{
  "output" : [
    "pass": false,
    "fail": true
  ],
  "files" : [
    "examples/1.html",
    "examples/2.html"
  ]
}
  1. 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

  1. Stop running tests when there's a failure
{
  "bailOut" : true,
  "files" : [
    "examples/1.html",
    "examples/2.html"
  ]
}