Sha256: e12387ef9fd750aae0c891da2ea49699d2ead054d014f21d0af50fbcb31ad8ab
Contents?: true
Size: 493 Bytes
Versions: 5
Compression:
Stored size: 493 Bytes
Contents
exports = module.exports = MyReporter; function MyReporter(runner) { var passes = 0; var failures = 0; var total = 0; runner.on('pass', function(test){ passes++; console.log('pass: %s', test.fullTitle()); }); runner.on('fail', function(test, err){ failures++; console.log('fail: %s -- error: %s', test.fullTitle(), err.message); }); runner.on('end', function(){ console.log('end: %d/%d', passes, passes + failures); process.exit(failures); }); }
Version data entries
5 entries across 5 versions & 1 rubygems