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.js
Currently four reports are generated:
reports/coverage/cobertura, respectively. If you need this to be configurable, please open an issue.