0.1.0 • Published 9 years ago
mocha-remap-istanbul v0.1.0
mocha-remap-istanbul
Mocha reporter to generate coverage report of istanbul instrumented code. Supports coverage remapping by remap-istanbul. More than just inspired by mocha-istanbul, thanks guys.
Usage
- Install
mochaandmocha-remap-istanbul - Instrument your code using
istanbul - Make your tests to use the instrumented code
- Run
mochausingmocha-istanbulas a reporter - Use the environment variable
ISTANBUL_REPORTERSto specify a comma separated list of istanbul reports with optional path. By defaultISTANBUL_REPORTERS=text-summary,html - Use the environment variable
REMAP_ISTANBUL_REPORTERSto specify a comma separated list of istanbul reports with optional path. To make this work you need to specify JSON reporter insideISTANBUL_REPORTERSenvironment variable.
Example
process.env.ISTANBUL_REPORTERS = 'json=coverage/coverage.json';
process.env.REMAP_ISTANBUL_REPORTERS = 'text-summary,lcovonly=coverage/lcov.info,html=coverage/html';0.1.0
9 years ago