testem-multi

Run multiple testems, output to a single tap file

npm install testem-multi
53 downloads in the last day
106 downloads in the last week
477 downloads in the last month

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

npm loves you