Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_runner: fix test counting #47699

Closed
wants to merge 1 commit into from
Closed

Conversation

MoLow
Copy link
Member

@MoLow MoLow commented Apr 24, 2023

Fixes: #47696

this also improves the test for #46577

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Apr 24, 2023
@@ -672,10 +672,15 @@ not ok 66 - invalid subtest fail
# Warning: Test "immediate reject - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: rejected from immediate reject fail" and would have caused the test to fail, but instead triggered an unhandledRejection event.
# Warning: Test "callback called twice in different ticks" generated asynchronous activity after the test ended. This activity created the error "Error [ERR_TEST_FAILURE]: callback invoked multiple times" and would have caused the test to fail, but instead triggered an uncaughtException event.
# Warning: Test "callback async throw after done" 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.
1..66
# tests 80
# Subtest: last test
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on main, this diff would have been:

diff --git a/test/fixtures/test-runner/output/output_cli.snapshot b/test/fixtures/test-runner/output/output_cli.snapshot
index 1d2ea1db9f..a4d54b29cd 100644
--- a/test/fixtures/test-runner/output/output_cli.snapshot
+++ b/test/fixtures/test-runner/output/output_cli.snapshot
@@ -675,7 +675,7 @@ not ok 66 - invalid subtest fail
 # Subtest: last test
-ok 2 - last test
+ok 67 - last test
   ---
   duration_ms: *
   ..

@MoLow MoLow requested review from cjihrig and benjamingr April 24, 2023 14:15
@MoLow MoLow added the test_runner Issues and PRs related to the test runner subsystem. label Apr 24, 2023
@MoLow MoLow force-pushed the fix-test-runner-count branch 2 times, most recently from dd2cd39 to c07254f Compare April 24, 2023 16:58
@MoLow
Copy link
Member Author

MoLow commented Apr 24, 2023

superseded by #47675

@MoLow MoLow closed this Apr 24, 2023
@MoLow MoLow deleted the fix-test-runner-count branch April 24, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nested test counting is wrong
3 participants