Reports test results from mocha tests to specs-api
Install
npm install --save tz-mocha-reporter
Generate Report
mocha -R tz-mocha-reporter
Send report to specs api
report.js
var reporter = require('tz-mocha-reporter').reporter;
reporter.report(function(err) {
if (err) {
throw err;
}
process.exit(0);
});
node report.js