A super low noise mocha reporter (i.e. the "min" reporter without the crazy screen clearing)
mocha-tldr-reporter is a reporter for mocha, patterned after the mocha-provided min
reporter.
Install via npm
:
$ npm install --save-dev mocha-tldr-reporter
If you're using gulp, use require
to include mocha-tldr-reporter in your task, and then pass it in the reporter
field to mocha:
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var tldr = require('mocha-tldr-reporter');
gulp.task('test', function() {
gulp.src('tests.js')
.pipe(mocha({ reporter: tldr }));
});
If you're launching mocha from the command line, pass mocha-tldr-reporter using the -R
or --reporter
flag:
$ mocha -R mocha-tldr-reporter
Eric Herbrandson (eric@herbrandson.com)
Copyright (c) 2014 Eric Herbrandson
Released under the MIT license