-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't let an occupied test slip past endAll
Also, don't autoend if already occupied
- Loading branch information
Showing
8 changed files
with
107 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
TAP version 13 | ||
not ok 1 - a ___/# time=[0-9.]+(ms)?/~~~ { | ||
not ok 1 - b ___/# time=[0-9.]+(ms)?/~~~ { | ||
not ok 1 - test unfinished | ||
--- | ||
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', t => {\n","test":"b"} | ||
... | ||
|
||
Bail out! # test unfinished | ||
} | ||
} | ||
Bail out! # test unfinished | ||
ok | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
TAP version 13 | ||
# Subtest: a | ||
# Subtest: b | ||
not ok 1 - test unfinished | ||
--- | ||
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', t => {\n","test":"b"} | ||
... | ||
|
||
Bail out! # test unfinished | ||
Bail out! # test unfinished | ||
ok | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
TAP version 13 | ||
not ok 1 - a ___/# time=[0-9.]+(ms)?/~~~ { | ||
not ok 1 - b ___/# time=[0-9.]+(ms)?/~~~ { | ||
not ok 1 - test unfinished | ||
--- | ||
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', t => {\n","test":"b"} | ||
... | ||
|
||
1..1 | ||
# failed 1 test | ||
} | ||
|
||
1..1 | ||
# failed 1 test | ||
} | ||
|
||
1..1 | ||
# failed 1 test | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
ok | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
var t = require('tap') | ||
|
||
t.teardown(() => console.log('ok')) | ||
|
||
t.test('a', t => { | ||
t.test('b', t => { | ||
// t.pass('ok') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
TAP version 13 | ||
# Subtest: a | ||
# Subtest: b | ||
not ok 1 - test unfinished | ||
--- | ||
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', t => {\n","test":"b"} | ||
... | ||
|
||
1..1 | ||
# failed 1 test | ||
not ok 1 - b ___/# time=[0-9.]+(ms)?/~~~ | ||
|
||
1..1 | ||
# failed 1 test | ||
not ok 1 - a ___/# time=[0-9.]+(ms)?/~~~ | ||
|
||
1..1 | ||
# failed 1 test | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
ok | ||
|