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) {
this.tapError('Plan of 1..0, but test points encountered')
}
} else if (!this.bailedOut && this.planStart === -1) {
if (this.count === 0) {
if (this.count === 0 && !this.syntheticPlan) {
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')
skipAll = true
} else {
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
[
[
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
......
......@@ -68,10 +68,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......@@ -130,10 +126,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -68,10 +68,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......@@ -130,10 +126,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -76,10 +76,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......@@ -138,10 +134,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -76,10 +76,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......@@ -138,10 +134,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -68,10 +68,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......@@ -130,10 +126,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -68,10 +68,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......@@ -130,10 +126,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -76,10 +76,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......@@ -138,10 +134,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -76,10 +76,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......@@ -138,10 +134,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -19,10 +19,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -19,10 +19,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -19,10 +19,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -19,10 +19,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -19,10 +19,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -19,10 +19,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -19,10 +19,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"plan",
{
......
......@@ -19,10 +19,6 @@
"line",
"1..0 # no tests found\n"
],
[
"line",
"1..0 # no tests found\n"
],
[
"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