Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save OSP123/865a9613512b7db63dd4e8e5de855047 to your computer and use it in GitHub Desktop.
Save OSP123/865a9613512b7db63dd4e8e5de855047 to your computer and use it in GitHub Desktop.
mocha.run()
.on('test', function (test) {
console.log('Test started: ' + test.title);
})
.on('test end', function (test) {
console.log('Test done: ' + test.title);
})
.on('pass', function (test) {
console.log('Test passed');
console.log(test);
})
.on('fail', function (test, err) {
console.log('Test fail');
// console.log(test);
console.log(err);
})
.on('end', function () {
console.log('All done');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment