-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print tests that were pending when a timeout occurs
In `--verbose` mode, print tests that were pending when a timeout occurs. See also #583.
- Loading branch information
1 parent
30a80b6
commit 6d12abf
Showing
12 changed files
with
154 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import test from '../../../..'; | ||
|
||
test('a passes', t => t.pass()); | ||
|
||
test.cb('a slow', t => { | ||
setTimeout(t.end, 5000); | ||
}); | ||
test.cb('a slow two', t => { | ||
setTimeout(t.end, 5000); | ||
}); | ||
|
||
test('a passes two', t => t.pass()); |
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,15 @@ | ||
import test from '../../../..'; | ||
|
||
test('b passes', t => t.pass()); | ||
|
||
test.cb('b slow', t => { | ||
setTimeout(t.end, 5000); | ||
}); | ||
test.cb('b slow two', t => { | ||
setTimeout(t.end, 5000); | ||
}); | ||
test.cb('b slow three', t => { | ||
setTimeout(t.end, 5000); | ||
}); | ||
|
||
test('b passes two', t => t.pass()); |
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 @@ | ||
{} |
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 @@ | ||
import test from '../../../..'; | ||
|
||
test('passes', t => t.pass()); | ||
|
||
test.cb('slow', t => { | ||
setTimeout(t.end, 5000); | ||
}); | ||
test.cb('slow two', t => { | ||
setTimeout(t.end, 5000); | ||
}); | ||
|
||
test('passes two', t => t.pass()); |
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 @@ | ||
{} |
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,33 @@ | ||
|
||
---tty-stream-chunk-separator | ||
[32m✔[39m a [90m[2m›[22m[39m a passes | ||
---tty-stream-chunk-separator | ||
[32m✔[39m a [90m[2m›[22m[39m a passes two | ||
---tty-stream-chunk-separator | ||
[31m[39m | ||
[31m✖ Exited because no new tests completed within the last 1000ms of inactivity[39m | ||
|
||
2 tests still running in ~/test/fixture/report/timeoutinmultiplefiles/a.js: | ||
|
||
◌ a [90m[2m›[22m[39m a slow | ||
◌ a [90m[2m›[22m[39m a slow two | ||
|
||
---tty-stream-chunk-separator | ||
[32m✔[39m b [90m[2m›[22m[39m b passes | ||
---tty-stream-chunk-separator | ||
[32m✔[39m b [90m[2m›[22m[39m b passes two | ||
---tty-stream-chunk-separator | ||
[31m[39m | ||
[31m✖ Exited because no new tests completed within the last 1000ms of inactivity[39m | ||
|
||
3 tests still running in ~/test/fixture/report/timeoutinmultiplefiles/b.js: | ||
|
||
◌ b [90m[2m›[22m[39m b slow | ||
◌ b [90m[2m›[22m[39m b slow two | ||
◌ b [90m[2m›[22m[39m b slow three | ||
|
||
---tty-stream-chunk-separator | ||
|
||
[32m4 tests passed[39m | ||
|
||
---tty-stream-chunk-separator |
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,19 @@ | ||
|
||
---tty-stream-chunk-separator | ||
[32m✔[39m passes | ||
---tty-stream-chunk-separator | ||
[32m✔[39m passes two | ||
---tty-stream-chunk-separator | ||
[31m[39m | ||
[31m✖ Exited because no new tests completed within the last 1000ms of inactivity[39m | ||
|
||
2 tests still running in ~/test/fixture/report/timeoutinsinglefile/a.js: | ||
|
||
◌ slow | ||
◌ slow two | ||
|
||
---tty-stream-chunk-separator | ||
|
||
[32m2 tests passed[39m | ||
|
||
---tty-stream-chunk-separator |