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

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-bot nodejs-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

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

2 participants