Skip to content

dustyburwell/mocha-stopplicht

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adds support for stopplicht in the mocha Node.js unit test framework. When your tests are run, the stopplicht light in your toolbar or system tray will change from yellow/red/green, depending on the state of the test run. It also pops up a notification with a summary of any failed tests.

Get it

First, install stopplicht and mocha from NPM.

Then install mocha-stopplicht, run npm install --save-dev mocha-stopplicht.

Use it

Mocha-stopplicht runs as a custom mocha reporter. To use, it just run your test suite:

> mocha --reporter mocha-stopplicht spec

Multiple reporters

One negative side effect of using the stopplicht reporter is that you lose quite a bit of fidelity on failed tests. One option to address that issue is to use mocha-multi to multiplex reporting.

> multi='list=- mocha-stopplicht=-' ./node_modules/.bin/mocha -R mocha-multi spec

note: mocha-multi currently only works on mocha version 1.x

About

A stopplicht reporter for mocha.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published