tap-parser
Advanced tools
Comparing version 5.3.0 to 5.3.1
30
index.js
@@ -422,19 +422,21 @@ // Transforms a stream of TAP into a stream of result objects | ||
// comment a bit at the end so we know what happened. | ||
// but don't repeat these comments if they're already present. | ||
if (res.plan.end !== res.count && !res.bailout) | ||
this.emitComment('test count(' + res.count + | ||
') != plan(' + res.plan.end + ')', false, true) | ||
if (!res.bailout) { | ||
// comment a bit at the end so we know what happened. | ||
// but don't repeat these comments if they're already present. | ||
if (res.plan.end !== res.count) | ||
this.emitComment('test count(' + res.count + | ||
') != plan(' + res.plan.end + ')', false, true) | ||
if (res.fail > 0 && !res.ok) | ||
this.emitComment('failed ' + res.fail + | ||
(res.count > 1 ? ' of ' + res.count + ' tests' | ||
: ' test'), | ||
false, true) | ||
if (res.fail > 0 && !res.ok) | ||
this.emitComment('failed ' + res.fail + | ||
(res.count > 1 ? ' of ' + res.count + ' tests' | ||
: ' test'), | ||
false, true) | ||
if (res.todo > 0) | ||
this.emitComment('todo: ' + res.todo, false, true) | ||
if (res.todo > 0) | ||
this.emitComment('todo: ' + res.todo, false, true) | ||
if (res.skip > 0) | ||
this.emitComment('skip: ' + res.skip, false, true) | ||
if (res.skip > 0) | ||
this.emitComment('skip: ' + res.skip, false, true) | ||
} | ||
@@ -441,0 +443,0 @@ this.emit('complete', this.results) |
{ | ||
"name": "tap-parser", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"description": "parse the test anything protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
41414
955