node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป


Custom mocha reporter

The mocha-spec-cov reporter is the same as spec however when run against a library instrumented by node-jscoverage (or coffee-coverage) it will produce coverage output. Total coverage and source files that have < 50% coverage at the end of the report (see screenshot).

npm install mocha-spec-cov

mocha -R mocha-spec-cov

Screen Shot