Skip to content

Instantly share code, notes, and snippets.

@seanmonstar
Last active August 29, 2015 14:02
Show Gist options
  • Save seanmonstar/ab39153d101d54f00519 to your computer and use it in GitHub Desktop.
Save seanmonstar/ab39153d101d54f00519 to your computer and use it in GitHub Desktop.
using multiple reporters with mocha
var dots = require('mocha/lib/reporters/dot');
var cov = require('mocha-text-cov');
module.exports = function reporter(runner, opts) {
new dots(runner, opts);
new cov(runner, opts);
};
# cause the require is inside ./node_modules/mocha/bin/_mocha
mocha --reporter ../../../reporter.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment