-
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.
Output logs for tests that remain pending when AVA exits
- Loading branch information
1 parent
136dde3
commit 9206928
Showing
13 changed files
with
183 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,20 @@ | ||
const delay = require('delay'); | ||
|
||
const test = require('../../../../entrypoints/main.cjs'); | ||
|
||
test('a passes', t => t.pass()); | ||
|
||
test('a slow', async t => { | ||
t.log('this slow test prints useful debug message just text'); | ||
await delay(15_000); | ||
t.log('this never logs because test times out'); | ||
t.pass(); | ||
}); | ||
test('a slow two', async t => { | ||
t.log('another useful debug message', {x: 5}); | ||
await delay(15_000); | ||
t.log('this never logs because test times out'); | ||
t.pass(); | ||
}); | ||
|
||
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,19 @@ | ||
const delay = require('delay'); | ||
|
||
const test = require('../../../../entrypoints/main.cjs'); | ||
|
||
test('a passes', t => t.pass()); | ||
|
||
test('a slow', async t => { | ||
t.log('hello world'); | ||
await delay(15_000); | ||
t.log('this never prints due to test time out'); | ||
t.pass(); | ||
}); | ||
test('a slow two', async t => { | ||
await delay(15_000); | ||
t.log('this never prints due to test time out'); | ||
t.pass(); | ||
}); | ||
|
||
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 @@ | ||
{} |
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,38 @@ | ||
|
||
---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✘ Timed out while running tests[39m | ||
|
||
2 tests were pending in a.cjs | ||
|
||
◌ a [90m[2m›[22m[39m a slow | ||
[35mℹ[39m [90mthis slow test prints useful debug message just text[39m | ||
◌ a [90m[2m›[22m[39m a slow two | ||
[35mℹ[39m [90manother useful debug message [90m{[39m[90m[39m | ||
[90m x: [33m5[39m[90m[90m,[39m[90m[39m | ||
[90m[90m}[39m[90m[39m | ||
|
||
---tty-stream-chunk-separator | ||
[32m✔[39m b [90m[2m›[22m[39m a passes | ||
---tty-stream-chunk-separator | ||
[32m✔[39m b [90m[2m›[22m[39m a passes two | ||
---tty-stream-chunk-separator | ||
[31m[39m | ||
[31m✘ Timed out while running tests[39m | ||
|
||
2 tests were pending in b.cjs | ||
|
||
◌ b [90m[2m›[22m[39m a slow | ||
[35mℹ[39m [90mhello world[39m | ||
◌ b [90m[2m›[22m[39m a slow two | ||
|
||
---tty-stream-chunk-separator | ||
[90m─[39m | ||
|
||
[32m4 tests passed[39m | ||
[31m4 tests remained pending after a timeout[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,38 @@ | ||
|
||
---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✘ Timed out while running tests[39m | ||
|
||
2 tests were pending in a.cjs | ||
|
||
◌ a [90m[2m›[22m[39m a slow | ||
[35mℹ[39m [90mthis slow test prints useful debug message just text[39m | ||
◌ a [90m[2m›[22m[39m a slow two | ||
[35mℹ[39m [90manother useful debug message [90m{[39m[90m[39m | ||
[90m x: [33m5[39m[90m[90m,[39m[90m[39m | ||
[90m[90m}[39m[90m[39m | ||
|
||
---tty-stream-chunk-separator | ||
[32m✔[39m b [90m[2m›[22m[39m a passes | ||
---tty-stream-chunk-separator | ||
[32m✔[39m b [90m[2m›[22m[39m a passes two | ||
---tty-stream-chunk-separator | ||
[31m[39m | ||
[31m✘ Timed out while running tests[39m | ||
|
||
2 tests were pending in b.cjs | ||
|
||
◌ b [90m[2m›[22m[39m a slow | ||
[35mℹ[39m [90mhello world[39m | ||
◌ b [90m[2m›[22m[39m a slow two | ||
|
||
---tty-stream-chunk-separator | ||
[90m─[39m | ||
|
||
[32m4 tests passed[39m | ||
[31m4 tests remained pending after a timeout[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,38 @@ | ||
|
||
---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✘ Timed out while running tests[39m | ||
|
||
2 tests were pending in a.cjs | ||
|
||
◌ a [90m[2m›[22m[39m a slow | ||
[35mℹ[39m [90mthis slow test prints useful debug message just text[39m | ||
◌ a [90m[2m›[22m[39m a slow two | ||
[35mℹ[39m [90manother useful debug message [90m{[39m[90m[39m | ||
[90m x: [33m5[39m[90m[90m,[39m[90m[39m | ||
[90m[90m}[39m[90m[39m | ||
|
||
---tty-stream-chunk-separator | ||
[32m✔[39m b [90m[2m›[22m[39m a passes | ||
---tty-stream-chunk-separator | ||
[32m✔[39m b [90m[2m›[22m[39m a passes two | ||
---tty-stream-chunk-separator | ||
[31m[39m | ||
[31m✘ Timed out while running tests[39m | ||
|
||
2 tests were pending in b.cjs | ||
|
||
◌ b [90m[2m›[22m[39m a slow | ||
[35mℹ[39m [90mhello world[39m | ||
◌ b [90m[2m›[22m[39m a slow two | ||
|
||
---tty-stream-chunk-separator | ||
[90m─[39m | ||
|
||
[32m4 tests passed[39m | ||
[31m4 tests remained pending after a timeout[39m | ||
---tty-stream-chunk-separator |