mocha-events-wrapper

0.5.3 • Public • Published

mocha-events-wrapper

Build Status

Extension of the mocha programmatic api that fires more consumable events. Wraps mocha.run with a simpler interface.

Usage

var Mocha = require('mocha-events-wrapper');
var mew = new Mocha({ require: './mocktest' });
 
mew.on('suite', function (event) {
  console.log(event.suite.title);
});
mew.on('fail', function (event) {
  console.error(event.test.title);
});

API

Events

  • suite
    • suite
    • level
  • suite end
    • suite
    • level
  • pass
    • test
    • level
  • fail
    • error
    • test
    • level

Information

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.5.3
    0
  • 0.5.2
    0
  • 0.5.1
    0

Package Sidebar

Install

npm i mocha-events-wrapper

Weekly Downloads

0

Version

0.5.3

License

MIT

Last publish

Collaborators

  • tjwebb