proposal: New File Coverage Threshold
See original GitHub issueAs a user - it would be really great to be able to specify a coverage threshold
for new files
. That way if new files are added to the project we can assert that we’re adding tests in a meaningful way - while being able to manage our legacy code that may not be as tested alongside of it.
The diff for new file coverage is already being made - so in theory - it wouldn’t be difficult to take those numbers and fail the check if they fall under any given percentage.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Add Jest coverage threshold to create-react-app project
You can override certain coverage reporting metrics as indicated by create-react-app#coverage-reporting. Mind you, this has to be configured ...
Read more >Questions and Answers on Reporting of Offers of Health ... - IRS
Certain employers are required to report to the IRS information about whether they offered health coverage to their employees and if so, ...
Read more >IRS Lowers 2022 Employer Health Plan Affordability ... - SHRM
Noncalendar-year plans will continue to use the 9.83 percent affordability threshold to determine affordability in 2022 until their new plan ...
Read more >Customize pipeline configuration - GitLab Docs
On the left sidebar, select Settings > CI/CD. Expand General pipelines. In the Pipeline status, Coverage report, or Latest release sections, view the...
Read more >Planning For the End of the Continuous Coverage Requirement
Provide Consistency – Create a consistent voice across community partners. ... Medi-Cal Continuous Coverage Resources (download zip file).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I want to finish a big refactor before adding new features - it will be easier to review the code and predict possible drawbacks.
Hello @therynamo,
The
v2
version uses slightly different approach - it usesthreshold
from the jest configuration file. Jest does not support threshold for the “new” files, so it’s hard to implement this feature.The goal of this action is to work with as tiny configuration as possible. I could add a new option for the action, but this could potentially confuse users - all thresholds are passing on the local test run, but failing on the ci.
So if you have an idea how to implement this, without confusing users too much - I would love to hear it!