Last active
August 29, 2015 14:02
-
-
Save seanmonstar/ab39153d101d54f00519 to your computer and use it in GitHub Desktop.
using multiple reporters with mocha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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