Skip to content

test_runner: mark ignored branches as covered in coverage report - #63627

Open
developers-universe-1 wants to merge 1 commit into
nodejs:mainfrom
developers-universe-1:fix/coverage-ignore-branch-lcov
Open

test_runner: mark ignored branches as covered in coverage report#63627
developers-universe-1 wants to merge 1 commit into
nodejs:mainfrom
developers-universe-1:fix/coverage-ignore-branch-lcov

Conversation

@developers-universe-1

Copy link
Copy Markdown
Contributor

When a branch leads to code that is fully ignored via /* node:coverage ignore next */, the branch should be marked as covered (count = 1) instead of uncovered (count = 0). This aligns with the existing logic that already counts fully-ignored branches as covered for summary statistics (BRF/BRH).

Fixes: #61586

When a branch leads to code that is fully ignored via
/* node:coverage ignore next */, the branch should be marked as
covered (count = 1) instead of uncovered (count = 0). This aligns
with the existing logic that already counts fully-ignored branches
as covered for summary statistics (BRF/BRH).
Fixes: nodejs#61586
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels May 28, 2026
@JakobJingleheimer

Copy link
Copy Markdown
Member

Duplicate of#61598

@JakobJingleheimerJakobJingleheimer marked this as a duplicate of #61598Jun 17, 2026
@JakobJingleheimerJakobJingleheimer added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Jun 17, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicateIssues and PRs that are duplicates of other issues or PRs.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.

test_runner: node:coverage ignore comments exclude DA but leave BRDA in lcov output

3 participants

@developers-universe-1@nodejs-github-bot@JakobJingleheimer