Skip to content

test_runner: print failed coverage reports with dot reporter fixes #60884#62091

Open
KJyang-0114 wants to merge 1 commit intonodejs:mainfrom
KJyang-0114:fix/issue-60884-dot-coverage-error
Open

test_runner: print failed coverage reports with dot reporter fixes #60884#62091
KJyang-0114 wants to merge 1 commit intonodejs:mainfrom
KJyang-0114:fix/issue-60884-dot-coverage-error

Conversation

@KJyang-0114
Copy link

When coverage threshold is not met, the dot reporter now outputs the error message so users can understand why tests failed.

Problem

When running tests with both the dot reporter and coverage reports, if the coverage report fails there is no output (other than the dots) but the program exits with a failure status code.

Solution

Similar to PR #52655, this adds support for the test:diagnostic event type in the dot reporter. When coverage threshold is not met, the error message will now be displayed.

Changes

  • Added handler for test:diagnostic event type in dot reporter
  • Error messages are displayed in red, warnings in yellow

Refs: #60884

When coverage threshold is not met, the dot reporter now outputs
the error message so users can understand why tests failed.

Refs: nodejs#60884
@nodejs-github-bot
Copy link
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 Mar 3, 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