Created
March 18, 2018 22:21
-
-
Save OSP123/865a9613512b7db63dd4e8e5de855047 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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