question-mark
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.

Thresholds defined per file/folder

See original GitHub issue

Idea

Support per file/folder thresholds:

coverageThreshold: {
    'packages/a/': {
      statements: 77,
      branches: 69,
      functions: 65,
      lines: 77,
    },
    'packages/b/': {
      statements: 30,
      branches: 27,
      functions: 29,
      lines: 32,
    },
  },

Description

Pretty often users have thresholds defined (with or without global) per file/folder. Currently this action doesn’t fail (or report error) if any of the thresholds aren’t met, it still generates report without any issue. Only global threshold is taken into account

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
roman-sainchukcommented, Jul 7, 2022

Wow, I like your idea! 🎉 But anyway I think we should have message about unmet thresholds for any entry like we have for global

0reactions
luke-lacroix-healthycommented, Dec 27, 2022

My team has a similar issue and the proposal seems fair to me. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Restrictions and limitations in OneDrive and SharePoint
There is a limit of 50,000 items that can be shared within a folder and any sub-folders. To overcome this restriction, move some...
Read more >
Failure Thresholds and How to Change Them - GitHub Pages
Essentially, the threshold number is the percent of failed records for a particular check you are willing to accept. If the percent failures...
Read more >
SharePoint Document Library Challenges: Item Thresholds + ...
SharePoint has a 5,000 “item limit threshold” for document libraries and lists, and while this ... That limit isn't 5,000 items per library,...
Read more >
Working with rules and setting thresholds in Checkmk
Take for example the file system check, where sometimes you might want the service to go to, 'Warning' when 80% of the available...
Read more >
Configuring Jest
It is recommended to define the configuration in a dedicated JavaScript, TypeScript or JSON file. The file will be discovered automatically, ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found