testem-multi

0.4.5 • Public • Published

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"
  ]
}

Readme

Keywords

Package Sidebar

Install

npm i testem-multi

Weekly Downloads

2

Version

0.4.5

License

MIT

Last publish

Collaborators

  • sideroad