You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec reporter must show errors on coverage thresholds in red.1
As it is right now, visually - it looks like the tests pass.
I can imagine it can create a lot of back/forth in code reviews.
You'll only realise there's a problem when the CI cycle fails because it correctly exits 1. That sucks because debugging in CI is as pleasant as watching paint dry.
I'm talking about the last line of this:
ℹ duration_ms 60.134125
ℹ start of coverage report
ℹ test/exceptions.test.js | 100.00 | 100.00 | 100.00 |
ℹ ------------------------------------------------------------------------
ℹ all files | 100.00 | 100.00 | 95.08 |
ℹ ------------------------------------------------------------------------
ℹ end of coverage report
ℹ Error: 95.08% function coverage does not meet threshold of 100%. <-- this must be more pronounced. It's in blue right now.
If there's a problem or a danger, just the quantity (value) itself should be colored.
Coloring a label creates ambiguity "there a problem in general with the facility itself."
Coloring just the quantity sends a clear message that it's the quantity itself that's creating the issue.
In this case it's flat out wrong.
Both the tests and the coverage thresholds pass.
No yellows, orange, or red should appear in the output.
Additionally, that "blue" generic colouring creates issues:
a) it's unnecessary.
I get that colours make the CLI a bit less boring but they
desensitize the user to important messages that could be emphasized by colors.
b) right now it also obscures diagnostics logging:
t.diagnostics('foobar') is also printed in that blue colour but it ends up blending in with the existing blue, ending up hidden.
bit confused here - none of the PRs have been merged so no idea where this change came from
Subsystem
Test Runner, all OS, all versions
Description
Another small visual tweak.
The
spec
reporter must show errors on coverage thresholds in red.1As it is right now, visually - it looks like the tests pass.
I can imagine it can create a lot of back/forth in code reviews.
You'll only realise there's a problem when the CI cycle fails because it correctly
exits 1
. That sucks because debugging in CI is as pleasant as watching paint dry.I'm talking about the last line of this:
here's how it really looks:
Minimal Reproduction
Output
No response
Footnotes
I'm aware of the accesibility concerns about using color, not sure how it's dealt or if at all. ↩
The text was updated successfully, but these errors were encountered: