Commit eae5e4ed authored by isaacs's avatar isaacs

Only emit synthetic 1..0 plan line once

parent 5d18829e
...@@ -391,9 +391,8 @@ Parser.prototype.end = function (chunk, encoding, cb) { ...@@ -391,9 +391,8 @@ Parser.prototype.end = function (chunk, encoding, cb) {
this.tapError('Plan of 1..0, but test points encountered') this.tapError('Plan of 1..0, but test points encountered')
} }
} else if (!this.bailedOut && this.planStart === -1) { } else if (!this.bailedOut && this.planStart === -1) {
if (this.count === 0) { if (this.count === 0 && !this.syntheticPlan) {
this.syntheticPlan = true this.syntheticPlan = true
this.emit('line', '1..0 # no tests found\n')
this.plan(1, 0, 'no tests found', '1..0 # no tests found\n') this.plan(1, 0, 'no tests found', '1..0 # no tests found\n')
skipAll = true skipAll = true
} else { } else {
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
[ [
[
"line",
"1..0 # no tests found\n"
],
[ [
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
......
...@@ -68,10 +68,6 @@ ...@@ -68,10 +68,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
...@@ -130,10 +126,6 @@ ...@@ -130,10 +126,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -68,10 +68,6 @@ ...@@ -68,10 +68,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
...@@ -130,10 +126,6 @@ ...@@ -130,10 +126,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -76,10 +76,6 @@ ...@@ -76,10 +76,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
...@@ -138,10 +134,6 @@ ...@@ -138,10 +134,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -76,10 +76,6 @@ ...@@ -76,10 +76,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
...@@ -138,10 +134,6 @@ ...@@ -138,10 +134,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -68,10 +68,6 @@ ...@@ -68,10 +68,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
...@@ -130,10 +126,6 @@ ...@@ -130,10 +126,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -68,10 +68,6 @@ ...@@ -68,10 +68,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
...@@ -130,10 +126,6 @@ ...@@ -130,10 +126,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -76,10 +76,6 @@ ...@@ -76,10 +76,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
...@@ -138,10 +134,6 @@ ...@@ -138,10 +134,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -76,10 +76,6 @@ ...@@ -76,10 +76,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
...@@ -138,10 +134,6 @@ ...@@ -138,10 +134,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
"line", "line",
"1..0 # no tests found\n" "1..0 # no tests found\n"
], ],
[
"line",
"1..0 # no tests found\n"
],
[ [
"plan", "plan",
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment