test_runner: print coverage and diagnostics with dot reporter - #61891
test_runner: print coverage and diagnostics with dot reporter#61891madkate42 wants to merge 2 commits into
Conversation
diagnostics with dot reporter
|
Review requested:
|
| fixture, | ||
| ]); | ||
|
|
||
| const stdout = result.stdout.toString(); |
There was a problem hiding this comment.
Could you please add a snapshot test too?
There was a problem hiding this comment.
great catch, thank you, added in this commit.
let me know if this could be improved!
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #61891 +/- ##
==========================================
- Coverage 91.70% 89.77% -1.93%
==========================================
Files 337 674 +337
Lines 140026 204906 +64880
Branches 21745 39385 +17640
==========================================
+ Hits 128410 183964 +55554
- Misses 11393 13233 +1840
- Partials 223 7709 +7486
🚀 New features to boost your workflow:
|
pmarchini
left a comment
There was a problem hiding this comment.
The tests are failing and the failures seem to be related!
|
The failures appear to be due to outdated snapshots. Running: |
|
Duplicate of #61423 |
Summary
When using the dot reporter with coverage thresholds, coverage failure messages and the coverage report were not displayed. The dot reporter only handled
test:passandtest:failevents, ignoringtest:diagnosticandtest:coverageevents.This change adds handlers for these events, displaying:
after the test dots complete.
Fixes: #60884
Refs: #52655
Test plan
test/parallel/test-runner-coverage-thresholds.jsfor dot reporter coverage failures