-
Notifications
You must be signed in to change notification settings - Fork 388
Add option to specify multiple threshold values for each threshold types #385
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
Add option to specify multiple threshold values for each threshold types #385
Conversation
…pes. + For single threshold value behavior will be same as present, i.e same threshold values is used to check against specified threshold types. Otherwise parse the value in the same order as the threshold type. Usage (1). /p:Threshold=\"80,100,70\" /p:ThresholdType=\"line,branch,method\" (2). /p:Threshold=90 /p:ThresholdType=\"line,branch,method\" (3). /p:Threshold=\"80,90\" /p:ThresholdType=\"branch,method\"
Codecov Report
@@ Coverage Diff @@
## master #385 +/- ##
=========================================
+ Coverage 87.13% 91.5% +4.36%
=========================================
Files 16 16
Lines 2106 2106
=========================================
+ Hits 1835 1927 +92
+ Misses 271 179 -92 |
Codecov Report
@@ Coverage Diff @@
## master #385 +/- ##
=======================================
Coverage 91.96% 91.96%
=======================================
Files 16 16
Lines 2229 2229
=======================================
Hits 2050 2050
Misses 179 179 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if @tonerdo approve we should update guide.
@thetoxicsoul what happens if I specify: |
@tonerdo It will throw a build error like (1) (2) |
I'm concerned that this addition adds some flexibility at the expense of increasing complexity of usage of this relatively simple option |
For our crossplatform .net project we would need this requirement (other windows C++ project we use similar threshold metric). |
@arun-subramanian-1 can you provide names of other coverage frameworks with this metrics checks support? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@tonerdo what do you think about this PR? |
@MarcoRossignoli I go with the second one. Let's put it on hold till we have more requests |
thank's @arun-subramanian-1 for the effort here...we'll re-open/merge in future if we'll have more feature requests! |
I like this feature - could you please re-open and merge the PR? |
@vraravam this PR needs some updated and also we should update the documentation accordingly. |
Hey all, This feature would be useful to me as well. Would be great if this feature could be added. Thanks! |
@arun-subramanian-1 I see some interest for this feature, would you like to rebase and move to the end? Ah not obligate at all!If you're busy let me know I'll clone your branch and implement the missing part. |
@MarcoRossignoli, can I continue this MR - rebase, resolve conflicts? |
Hey all, This feature would be useful to me as well. Would be great if this feature could be added. Thanks! |
@pbmiguel sorry I missed your message, yep you can go on with rebase. |
on it |
we had to open a new MR since we can't update the branch of @arun-subramanian-1 |
threshold values is used to check against specified threshold types.
Otherwise parse the value in the same order as the threshold type.
Usage
(1). /p:Threshold="80,100,70" /p:ThresholdType="line,branch,method"
(2). /p:Threshold=90 /p:ThresholdType="line,branch,method"
(3). /p:Threshold="80,90" /p:ThresholdType="branch,method"
closes #379