Skip to content

add threshold-uncovered option#173

Open
guyfedwards wants to merge 1 commit into
rpl:masterfrom
guyfedwards:add-threshold-uncovered
Open

add threshold-uncovered option#173
guyfedwards wants to merge 1 commit into
rpl:masterfrom
guyfedwards:add-threshold-uncovered

Conversation

@guyfedwards

Copy link
Copy Markdown

allows threshold to be set by number of uncovered lines instead of percentage
of coverage.

In a codebase which continuously grows, if you fix the number of lines uncovered
then you (loosely) enforce that all new code should be covered.

closes #168

image

@guyfedwards guyfedwards force-pushed the add-threshold-uncovered branch from 5cca005 to 5c853d6 Compare November 2, 2018 15:36
allows threshold to be set by number of uncovered lines instead of percentage
of coverage.

In a codebase which continuously grows, if you fix the number of lines uncovered
then you (loosely) enforce that all new code should be covered.

closes rpl#168
@guyfedwards guyfedwards force-pushed the add-threshold-uncovered branch from 5c853d6 to ee62702 Compare November 2, 2018 16:09
@mpsq

mpsq commented Nov 4, 2018

Copy link
Copy Markdown

wow that's nice! 🎉
Any chance that could be merged?

It is super useful when your app has really good coverage, in my case we have:

  • 98% coverage
  • 20k lines

It means someone can push something with ~200 untyped lines and the coverage won't drop. I could use decimals and get more precise with the required coverage but that PR sounds like a better solution

@dholbach

Copy link
Copy Markdown

@rpl Do you think you can take a look at this? This would be nice to get merged.

@dholbach

Copy link
Copy Markdown

Bump? 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Threshold option for max uncovered line count

3 participants