mocha-hollywood-reporter
v0.2.0
Published
A mocha reporter with a Hollywood flair
Downloads
17
Readme
mocha-hollywood-reporter
A mocha reporter with a Hollywood flair
Table of Contents
Intro
mocha-hollywood-reporter is a reporter for mocha, patterned after the mocha-provided dot
reporter. It was created in honor of a coworker.
Installation
Install via npm
:
$ npm install --save-dev mocha-hollywood-reporter
This will add mocha-hollywood-reporter to your package.json
file, in your devDependencies
section.
You can also install globally:
$ npm install -g mocha-hollywood-reporter
Usage
If you're using gulp, use require
to include mocha-hollywood-reporter in your task, and then pass it in the reporter
field to mocha:
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var hollywood = require('mocha-hollywood-reporter');
gulp.task('test', function() {
var config = require('../config').test;
gulp.src(config.src)
.pipe(mocha({ reporter: hollywood }));
});
If you're launching mocha from the command line, pass mocha-hollywood-reporter using the -R
or --reporter
flag:
$ mocha -R mocha-hollywood-reporter
Authors
Rob Warner ([email protected])
License
Copyright (c) 2014 Rob Warner
Released under the MIT license