-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure coverage percentage #20
Comments
Hey @misteral and thanks for opening #21. TBH I'm not convinced setting a % threshold is the way to ignore certain uncovered lines. Why did you choose to go for that option, versus e.g. local comments (maybe Undercover is scoping comments to methods where untested lines were changed (lines have to appear in the diff directly), so both of the latter could let you ignore lines on a case-by-case basis. Another side-note that's been on my radar and also discussed in #15: warnings could be generated at method level as well, e.g. the lines you've changed are 100% covered, but the entire enclosing method is missing tests. Could be implemented in the form of an alternative matching/analysis mode. Let me know what you think! |
Hi, @grotowski I'm going to implement pronto as review bot, we have project with 13% code coverage ... Not bad )) I wanna change it and we are decided doing coverage for 50+% lines of method, this is allow us move a bit faster in first refactoring circle. |
Sure, I understand your perspective, you might not want to test everything or deliberately skip some coverage. I think you could stick to the "50+% line coverage per method" requirement by still just using the If that happens in a commit/PR, wrap the lines in a Here's an example I played with recently to check if nocov can successfully silence undercover warnings - it can :)
Btw this is my reasoning, I am a bit sceptical about merging in |
Hi, yes I am clear with your approach, agree with you in case human review, but we use auto PR review for now and we should make decisions fast, we are currently use my fork, please decide about this PR on your side, thanks @grodowski . |
Hi, how I can configure percentage coverage for method and not raise warning if it above.
Current pronto message:
how to hide this if I configure coverage to (0.5) - I think this is 50%
The text was updated successfully, but these errors were encountered: