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
But (outside of the CLI) we have to painstakingly scan our coverage report to find that one 98.72% miss:
Example
Some possible solutions:
Zero-config?
We realize that Jest's coverageThreshold is more granular, allowing for global and per-glob overrides, but at least mapping the global lines/branches/functions to lcov's genhtml_hi_limit/genhtml_branch_hi_limit/genhtml_function_hi_limit would be a big improvement.
.lcovrc support?
Allow a discoverable .lcovrc (this would allow the use of all lcov config options). Start discovery in package root or sibling to config.js? Or add an --lcovConfig arg alongside --config/-c?
Pitch
Since the coverageThreshold setting is a core setting, and not only supported by a custom reporter, we feel that this belongs here.
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🚀 Feature Proposal
Istanbul / lcov provides a way to define min/med values to correspond to the red/yellow/green visual clues.
This is done via settings in a
.lcovrc
file:https://www.systutorials.com/docs/linux/man/5-lcovrc/
https://stackoverflow.com/questions/40618939/lcov-html-report-coverage-limits
Jest allows us to define custom coverage thresholds using
--coverageThreshold
CLI argument/config file setting.The coloration of the lcov HTML report should follow these values and not color a missed threshold green.
Motivation
We've set our global thresholds to 100%:
But (outside of the CLI) we have to painstakingly scan our coverage report to find that one 98.72% miss:
Example
Some possible solutions:
Zero-config?
We realize that Jest's
coverageThreshold
is more granular, allowing forglobal
and per-glob overrides, but at least mapping theglobal
lines/branches/functions to lcov'sgenhtml_hi_limit
/genhtml_branch_hi_limit
/genhtml_function_hi_limit
would be a big improvement..lcovrc
support?Allow a discoverable
.lcovrc
(this would allow the use of all lcov config options). Start discovery in package root or sibling toconfig.js
? Or add an--lcovConfig
arg alongside--config
/-c
?Pitch
Since the
coverageThreshold
setting is a core setting, and not only supported by a custom reporter, we feel that this belongs here.The text was updated successfully, but these errors were encountered: