Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

proposal: New File Coverage Threshold

See original GitHub issue

As 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:open
  • Created 2 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

ArtiomTrcommented, Sep 2, 2021

I want to finish a big refactor before adding new features - it will be easier to review the code and predict possible drawbacks.

ArtiomTrcommented, Mar 9, 2022

Hello @therynamo,

The v2 version uses slightly different approach - it uses threshold 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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found