node package manager


Mocha html-cov reporter replacement which writes to a file


A Mocha reporter which outputs JavaScript code coverage information directly into an HTML file. Works exactly like the built in html-cov reporter except writes to a file instead of stdout.

Also outputs dot-style test pass/failures to stdout. Useful to see the progress of long-running test suites.

npm install html-file-cov

html-file-cov is to be used with mocha and code coverage tools such as node-jscoverage or blanket.

mocha testrunner.js -R html-file-cov

Results will be saved into a file named coverage.html file within the current working directory.