Will only output a report if there are any test failures, thus making it suitable for use with git hooks
$ npm install mocha-githook-reporter --save-dev
or as a global module
$ npm install -g mocha-githook-reporter
Run mocha with mocha-githook-reporter
:
$ mocha test --reporter mocha-githook-reporter