Skip to content

Commit a4eb276

Browse files
committed
use multiple threshold values
1 parent a4272e0 commit a4eb276

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/coverlet.msbuild.tasks.tests/CoverageResultTaskTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void Execute_StateUnderTest_WithInstrumentationState_ThresholdType()
9696
{
9797
OutputFormat = "cobertura",
9898
Output = "coverageDir",
99-
Threshold = "50",
99+
Threshold = "50,60,70",
100100
ThresholdType = "line,branch,method",
101101
ThresholdStat = "total",
102102
InstrumenterState = InstrumenterState
@@ -112,8 +112,8 @@ public void Execute_StateUnderTest_WithInstrumentationState_ThresholdType()
112112

113113
// Verify the error message
114114
string expectedErrorMessage = "The total line coverage is below the specified 50\r\n" +
115-
"The total branch coverage is below the specified 50\r\n" +
116-
"The total method coverage is below the specified 50";
115+
"The total branch coverage is below the specified 60\r\n" +
116+
"The total method coverage is below the specified 70";
117117

118118
Assert.Contains(expectedErrorMessage, _errors[0].Message);
119119

0 commit comments

Comments
 (0)