-
-
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 drop buffered child output when it satisfies a plan
- Loading branch information
Showing
10 changed files
with
168 additions
and
0 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
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,26 @@ | ||
TAP version 13 | ||
ok 1 - with timeout { | ||
1..1 | ||
ok 1 - child test { | ||
1..2 | ||
ok 1 - this is fine | ||
ok 2 - i am ok with how things are proceeding | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
} | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
} | ||
|
||
ok 2 - no timeout { | ||
1..1 | ||
ok 1 - child test { | ||
1..2 | ||
ok 1 - this is fine | ||
ok 2 - i am ok with how things are proceeding | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
} | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
} | ||
|
||
1..2 | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
|
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,23 @@ | ||
TAP version 13 | ||
# Subtest: with timeout | ||
1..1 | ||
# Subtest: child test | ||
1..2 | ||
ok 1 - this is fine | ||
ok 2 - i am ok with how things are proceeding | ||
ok 1 - child test ___/# time=[0-9.]+(ms)?/~~~ | ||
ok 1 - with timeout ___/# time=[0-9.]+(ms)?/~~~ | ||
|
||
# Subtest: no timeout | ||
1..1 | ||
# Subtest: child test | ||
1..2 | ||
ok 1 - this is fine | ||
ok 2 - i am ok with how things are proceeding | ||
ok 1 - child test ___/# time=[0-9.]+(ms)?/~~~ | ||
|
||
ok 2 - no timeout ___/# time=[0-9.]+(ms)?/~~~ | ||
|
||
1..2 | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
|
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,26 @@ | ||
TAP version 13 | ||
ok 1 - with timeout { | ||
1..1 | ||
ok 1 - child test { | ||
1..2 | ||
ok 1 - this is fine | ||
ok 2 - i am ok with how things are proceeding | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
} | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
} | ||
|
||
ok 2 - no timeout { | ||
1..1 | ||
ok 1 - child test { | ||
1..2 | ||
ok 1 - this is fine | ||
ok 2 - i am ok with how things are proceeding | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
} | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
} | ||
|
||
1..2 | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
|
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,20 @@ | ||
var t = require('../..') | ||
t.test('with timeout', function (t) { | ||
t.plan(1) | ||
t.test('child test', function (t) { | ||
t.plan(2) | ||
setTimeout(function () { | ||
t.pass('this is fine') | ||
t.pass('i am ok with how things are proceeding') | ||
}) | ||
}) | ||
}) | ||
|
||
t.test('no timeout', function (t) { | ||
t.plan(1) | ||
t.test('child test', function (t) { | ||
t.plan(2) | ||
t.pass('this is fine') | ||
t.pass('i am ok with how things are proceeding') | ||
}) | ||
}) |
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,23 @@ | ||
TAP version 13 | ||
# Subtest: with timeout | ||
1..1 | ||
# Subtest: child test | ||
1..2 | ||
ok 1 - this is fine | ||
ok 2 - i am ok with how things are proceeding | ||
ok 1 - child test ___/# time=[0-9.]+(ms)?/~~~ | ||
ok 1 - with timeout ___/# time=[0-9.]+(ms)?/~~~ | ||
|
||
# Subtest: no timeout | ||
1..1 | ||
# Subtest: child test | ||
1..2 | ||
ok 1 - this is fine | ||
ok 2 - i am ok with how things are proceeding | ||
ok 1 - child test ___/# time=[0-9.]+(ms)?/~~~ | ||
|
||
ok 2 - no timeout ___/# time=[0-9.]+(ms)?/~~~ | ||
|
||
1..2 | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
|
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