Uh oh!
There was an error while loading. Please reload this page.
test_runner: print coverage and diagnostic info with dot reporter - #61423
test_runner: print coverage and diagnostic info with dot reporter#61423mag123c wants to merge 3 commits into
Conversation
nodejs-github-bot
commented
Jan 18, 2026
Review requested:
|
83840c7 to
313a274CompareCodecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #61423 +/- ##
==========================================
- Coverage 90.14% 90.13% -0.02%
==========================================
Files 743 743 Lines 242415 242438 +23 Branches 45651 45655 +4 ==========================================
- Hits 218531 218517 -14 - Misses 15386 15424 +38 + Partials 8498 8497 -1
🚀 New features to boost your workflow:
|
pmarchini
commented
Jan 20, 2026
Hey @mag123c, could you please add some tests? |
| @@ -170,4 +170,25 @@ for (const coverage of coverages) { | |||
| assert.strictEqual(result.status, 1); | |||
| assert(!findCoverageFileForPid(result.pid)); | |||
| }); | |||
| test(`test failing ${coverage.flag} with dot reporter`, () => { | |||
There was a problem hiding this comment.
NIT: I would suggest adding a snapshot test too, like as we have done in test/test-runner/test-output-coverage-width-100-uncovered-lines.mjs 👀
nodejs-github-bot
commented
Mar 4, 2026
When using the dot reporter with coverage enabled, coverage threshold failures and coverage reports were not printed, only an exit code was returned. This made it impossible to know why the test run failed. This change adds handling for test:diagnostic and test:coverage events to the dot reporter, matching the behavior of the spec reporter. Fixes: nodejs#60884 Signed-off-by: mag123c <diehreo@gmail.com>
Signed-off-by: mag123c <diehreo@gmail.com>
Signed-off-by: mag123c <diehreo@gmail.com>
1f59f26 to
f27934eCompareOne thing worth flagging for whoever picks this up: several newer PRs now touch the same handler in |
Failed to start CI- Validating Jenkins credentials ✔ Jenkins credentials valid - Querying data for job/node-test-pull-request/71552/ [SyntaxError: Unexpected token '<', ..." https://github.com/nodejs/node/actions/runs/30192660637 |
Failed to start CI- Validating Jenkins credentials ✔ Jenkins credentials valid - Querying data for job/node-test-pull-request/71552/ [SyntaxError: Unexpected token '<', ..." https://github.com/nodejs/node/actions/runs/30195826270 |
This PR adds coverage and diagnostic output to the dot reporter in test_runner.
Currently, when using the dot reporter with coverage enabled, if a coverage threshold fails the program exits with code 1 but prints nothing about why. Users have no way to know what went wrong. The spec reporter already handles this correctly.
Changes:
dot.js: handletest:diagnosticevents aterrorlevel (coverage threshold failure messages)dot.js: handletest:coverageevents (coverage report table)The dot reporter now behaves consistently with the spec reporter for coverage output.
Fixes: #60884