Skip to content

test_runner: fix test counting - #47699

Closed
MoLow wants to merge 1 commit into
nodejs:mainfrom
MoLow:fix-test-runner-count
Closed

test_runner: fix test counting#47699
MoLow wants to merge 1 commit into
nodejs:mainfrom
MoLow:fix-test-runner-count

Conversation

@MoLow

Copy link
Copy Markdown
Member

Fixes: #47696

this also improves the test for #46577

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-botnodejs-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

Copy link
Copy Markdown
MemberAuthor

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 benjamingr and cjihrigApril 24, 2023 14:15
@MoLowMoLow added the test_runner Issues and PRs related to the test runner subsystem. label Apr 24, 2023
@MoLow
MoLowforce-pushed the fix-test-runner-count branch 2 times, most recently from dd2cd39 to c07254fCompareApril 24, 2023 16:58
@MoLow

Copy link
Copy Markdown
MemberAuthor

superseded by #47675

@MoLowMoLow closed this Apr 24, 2023
@MoLow
MoLow deleted the fix-test-runner-count branch April 24, 2023 19:59
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib / srcIssues and PRs related to general changes in the lib or src directory.needs-ciPRs that need a full CI run.test_runnerIssues 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

@MoLow@nodejs-github-bot@cjihrig