npm.io
0.4.0 • Published 9 years ago

mocha-istanbul-spec

Licence
MIT
Version
0.4.0
Deps
3
Vulns
0
Weekly
0

mocha-istanbul-spec

fork of mocha-istanbul which adds spec reports as well, Mocha reporter to generate coverage report of istanbul instrumented code.

Usage

  1. Install istanbul, mocha and mocha-istanbul-spec
  2. Instrument your code using istanbul
  3. Make your tests to use the instrumented code (see COA library as an example)
  4. Run mocha using mocha-istanbul-spec as a reporter
  5. Use the environment variable ISTANBUL_REPORTERS to specify a comma separated list of istanbul reports. By default ISTANBUL_REPORTERS=text-summary,html