node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org ยป


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