Skip to content

tjwebb/mocha-events-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extension of the mocha programmatic API that wraps events in a more consumable interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published