0.0.2 • Published 9 years ago
mocha-with-coverage v0.0.2
mocha-with-coverage
Run mocha tests with istanbul coverage but include non-tested files.
Istanbul does not have built-in support to show non-tested files (see this issue). gulp-istanbul provides this functionality, but setting this up in every project can become tedious.
This module helps you set this up quickly:
npm install --save-dev mocha-with-coverage
./node_modules/.bin/mocha-with-coverage \
--istanbul.includeUntested \
--mocha.require test/setup.js \
--mocha.timeout 2500 \
--sources src/**/*.js \
--tests test/**/*.spec.jsCurrently four reports are generated: json, lcovonly, html and cobertura in reports/coverage/json, reports/coverage/lcovonly, reports/coverage/html and reports/coverage/cobertura, respectively. If you need this to be configurable, please open an issue.