Commit 7daec285 authored by isaacs's avatar isaacs

no synthetic plan for empty buffered children

parent 08fb5bec
......@@ -389,7 +389,11 @@ class Parser extends MiniPass {
} else if (!this.bailedOut && this.planStart === -1) {
if (this.count === 0 && !this.syntheticPlan) {
this.syntheticPlan = true
this.plan(1, 0, 'no tests found', '1..0 # no tests found\n')
if (this.buffered) {
this.planStart = 1
this.planEnd = 0
} else
this.plan(1, 0, 'no tests found', '1..0 # no tests found\n')
skipAll = true
} else {
this.tapError('no plan')
......
[
[
"line",
"ok child {\n"
],
[
"child",
[
[
"comment",
"# Subtest: child\n"
],
[
"complete",
{
"ok": true,
"count": 0,
"pass": 0,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 0,
"skipAll": true,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
],
[
"line",
"}\n"
],
[
"assert",
{
"ok": true,
"id": 1,
"buffered": true,
"name": "child"
}
],
[
"line",
"1..1\n"
],
[
"plan",
{
"start": 1,
"end": 1
}
],
[
"complete",
{
"ok": true,
"count": 1,
"pass": 1,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 1,
"skipAll": false,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
[
[
"line",
"ok child {\n"
],
[
"child",
[
[
"comment",
"# Subtest: child\n"
],
[
"complete",
{
"ok": true,
"count": 0,
"pass": 0,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 0,
"skipAll": true,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
],
[
"line",
"}\n"
],
[
"assert",
{
"ok": true,
"id": 1,
"buffered": true,
"name": "child"
}
],
[
"line",
"1..1\n"
],
[
"plan",
{
"start": 1,
"end": 1
}
],
[
"complete",
{
"ok": true,
"count": 1,
"pass": 1,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 1,
"skipAll": false,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
[
[
"line",
"TAP version 13\n"
],
[
"version",
13
],
[
"line",
"ok child {\n"
],
[
"child",
[
[
"comment",
"# Subtest: child\n"
],
[
"complete",
{
"ok": true,
"count": 0,
"pass": 0,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 0,
"skipAll": true,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
],
[
"line",
"}\n"
],
[
"assert",
{
"ok": true,
"id": 1,
"buffered": true,
"name": "child"
}
],
[
"line",
"1..1\n"
],
[
"plan",
{
"start": 1,
"end": 1
}
],
[
"complete",
{
"ok": true,
"count": 1,
"pass": 1,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 1,
"skipAll": false,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
[
[
"line",
"TAP version 13\n"
],
[
"version",
13
],
[
"line",
"ok child {\n"
],
[
"child",
[
[
"comment",
"# Subtest: child\n"
],
[
"complete",
{
"ok": true,
"count": 0,
"pass": 0,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 0,
"skipAll": true,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
],
[
"line",
"}\n"
],
[
"assert",
{
"ok": true,
"id": 1,
"buffered": true,
"name": "child"
}
],
[
"line",
"1..1\n"
],
[
"plan",
{
"start": 1,
"end": 1
}
],
[
"complete",
{
"ok": true,
"count": 1,
"pass": 1,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 1,
"skipAll": false,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
[
[
"line",
"ok child {\n"
],
[
"child",
[
[
"comment",
"# Subtest: child\n"
],
[
"complete",
{
"ok": true,
"count": 0,
"pass": 0,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 0,
"skipAll": true,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
],
[
"line",
"}\n"
],
[
"assert",
{
"ok": true,
"id": 1,
"buffered": true,
"name": "child"
}
],
[
"line",
"1..1\n"
],
[
"plan",
{
"start": 1,
"end": 1
}
],
[
"complete",
{
"ok": true,
"count": 1,
"pass": 1,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 1,
"skipAll": false,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
[
[
"line",
"ok child {\n"
],
[
"child",
[
[
"comment",
"# Subtest: child\n"
],
[
"complete",
{
"ok": true,
"count": 0,
"pass": 0,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 0,
"skipAll": true,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
],
[
"line",
"}\n"
],
[
"assert",
{
"ok": true,
"id": 1,
"buffered": true,
"name": "child"
}
],
[
"line",
"1..1\n"
],
[
"plan",
{
"start": 1,
"end": 1
}
],
[
"complete",
{
"ok": true,
"count": 1,
"pass": 1,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 1,
"skipAll": false,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
[
[
"line",
"TAP version 13\n"
],
[
"version",
13
],
[
"line",
"ok child {\n"
],
[
"child",
[
[
"comment",
"# Subtest: child\n"
],
[
"complete",
{
"ok": true,
"count": 0,
"pass": 0,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 0,
"skipAll": true,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
],
[
"line",
"}\n"
],
[
"assert",
{
"ok": true,
"id": 1,
"buffered": true,
"name": "child"
}
],
[
"line",
"1..1\n"
],
[
"plan",
{
"start": 1,
"end": 1
}
],
[
"complete",
{
"ok": true,
"count": 1,
"pass": 1,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 1,
"skipAll": false,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
[
[
"line",
"TAP version 13\n"
],
[
"version",
13
],
[
"line",
"ok child {\n"
],
[
"child",
[
[
"comment",
"# Subtest: child\n"
],
[
"complete",
{
"ok": true,
"count": 0,
"pass": 0,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 0,
"skipAll": true,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
],
[
"line",
"}\n"
],
[
"assert",
{
"ok": true,
"id": 1,
"buffered": true,
"name": "child"
}
],
[
"line",
"1..1\n"
],
[
"plan",
{
"start": 1,
"end": 1
}
],
[
"complete",
{
"ok": true,
"count": 1,
"pass": 1,
"fail": 0,
"bailout": false,
"todo": 0,
"skip": 0,
"plan": {
"start": 1,
"end": 1,
"skipAll": false,
"skipReason": "",
"comment": ""
},
"failures": []
}
]
]
TAP version 13
ok child {
}
1..1
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