Mocha spec reporter with code coverage output
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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