You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test_runner: automatically wait for subtests to finish
This commit updates the test runner to automatically wait for
subtests to finish. This makes the experience more consistent
with suites and removes the need to await anything.
PR-URL: #58800
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Pietro Marchini <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
<testcasename="+long running"time="*"classname="test"failure="test did not finish before its parent and was cancelled">
191
-
<failuretype="cancelledByParent"message="test did not finish before its parent and was cancelled">
192
-
[Error [ERR_TEST_FAILURE]: test did not finish before its parent and was cancelled] { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'test did not finish before its parent and was cancelled' }
@@ -519,9 +515,9 @@ Error [ERR_TEST_FAILURE]: test could not be started because its parent finished
519
515
<!-- Error: Test "callback async throw after done" at test/fixtures/test-runner/output/output.js:269:1 generated asynchronous activity after the test ended. This activity created the error "Error: thrown from callback async throw after done" and would have caused the test to fail, but instead triggered an uncaughtException event. -->
# Subtest: invalid subtest - pass but subtest fails
324
316
ok 25 - invalid subtest - pass but subtest fails
@@ -787,9 +779,9 @@ not ok 62 - invalid subtest fail
787
779
# Error: Test "callback async throw after done" at test/fixtures/test-runner/output/output.js:(LINE):1 generated asynchronous activity after the test ended. This activity created the error "Error: thrown from callback async throw after done" and would have caused the test to fail, but instead triggered an uncaughtException event.
Copy file name to clipboardExpand all lines: test/fixtures/test-runner/output/spec_reporter.snapshot
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,9 @@
90
90
Error: Test "callback async throw after done" at test/fixtures/test-runner/output/output.js:269:1 generated asynchronous activity after the test ended. This activity created the error "Error: thrown from callback async throw after done" and would have caused the test to fail, but instead triggered an uncaughtException event.
91
91
tests 75
92
92
suites 0
93
-
pass 34
94
-
fail 25
95
-
cancelled 3
93
+
pass 36
94
+
fail 24
95
+
cancelled 2
96
96
skipped 9
97
97
todo 4
98
98
duration_ms *
@@ -203,10 +203,6 @@
203
203
sync throw non-error fail (*ms)
204
204
Symbol(thrown symbol from sync throw non-error fail)
205
205
206
-
*
207
-
+long running (*ms)
208
-
'test did not finish before its parent and was cancelled'
Copy file name to clipboardExpand all lines: test/fixtures/test-runner/output/spec_reporter_cli.snapshot
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -93,9 +93,9 @@
93
93
Error: Test "callback async throw after done" at test/fixtures/test-runner/output/output.js:269:1 generated asynchronous activity after the test ended. This activity created the error "Error: thrown from callback async throw after done" and would have caused the test to fail, but instead triggered an uncaughtException event.
94
94
tests 76
95
95
suites 0
96
-
pass 35
97
-
fail 25
98
-
cancelled 3
96
+
pass 37
97
+
fail 24
98
+
cancelled 2
99
99
skipped 9
100
100
todo 4
101
101
duration_ms *
@@ -206,10 +206,6 @@
206
206
sync throw non-error fail (*ms)
207
207
Symbol(thrown symbol from sync throw non-error fail)
208
208
209
-
*
210
-
+long running (*ms)
211
-
'test did not finish before its parent and was cancelled'
0 commit comments