Skip to content

test_runner: exclude ignored branches from lcov output#63994

Closed
starkmarkus wants to merge 1 commit into
nodejs:mainfrom
starkmarkus:fix/test-runner-lcov-ignore-branches
Closed

test_runner: exclude ignored branches from lcov output#63994
starkmarkus wants to merge 1 commit into
nodejs:mainfrom
starkmarkus:fix/test-runner-lcov-ignore-branches

Conversation

@starkmarkus

Copy link
Copy Markdown

This teaches the test runner LCOV reporter to skip ignored branches when writing BRDA/BRF/BRH output.

It fixes the coverage mismatch reported for /* node:coverage ignore next */ cases, where DA entries were already omitted but branch entries were still counted as uncovered.

Checks:

  • node -c lib/internal/test_runner/coverage.js
  • node -c lib/internal/test_runner/reporter/lcov.js
  • node -c test/parallel/test-runner-coverage.js
  • node -c test/parallel/test-runner-reporters.js

@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 Jun 18, 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.

2 participants