@@ -51,7 +51,7 @@ private void CreateDeterministicTestPropsFile()
51
51
deterministicTestProps . Save ( Path . Combine ( _testProjectPath , PropsFileName ) ) ;
52
52
}
53
53
54
- private protected void AssertCoverage ( string standardOutput = "" , bool checkDeterministicReport = true )
54
+ private protected void AssertCoverage ( string standardOutput = "" )
55
55
{
56
56
if ( _buildConfiguration == "Debug" )
57
57
{
@@ -73,15 +73,6 @@ private protected void AssertCoverage(string standardOutput = "", bool checkDete
73
73
File . Delete ( reportFilePath ) ;
74
74
Assert . False ( File . Exists ( reportFilePath ) ) ;
75
75
76
- if ( checkDeterministicReport )
77
- {
78
- // Verify deterministic report
79
- foreach ( string coverageFile in Directory . GetFiles ( GetReportPath ( standardOutput ) , "coverage.cobertura.xml" , SearchOption . AllDirectories ) )
80
- {
81
- Assert . Contains ( "/_/test/coverlet.integration.determisticbuild/DeepThought.cs" , File . ReadAllText ( coverageFile ) ) ;
82
- File . Delete ( coverageFile ) ;
83
- }
84
- }
85
76
}
86
77
}
87
78
@@ -168,7 +159,7 @@ public void Msbuild_SourceLink()
168
159
Assert . Contains ( "| coverletsample.integration.determisticbuild | 100% | 100% | 100% |" , standardOutput ) ;
169
160
Assert . True ( File . Exists ( testResultFile ) ) ;
170
161
Assert . Contains ( "raw.githubusercontent.com" , File . ReadAllText ( testResultFile ) ) ;
171
- AssertCoverage ( standardOutput , checkDeterministicReport : false ) ;
162
+ AssertCoverage ( standardOutput ) ;
172
163
173
164
CleanupBuildOutput ( ) ;
174
165
}
@@ -269,7 +260,7 @@ public void Collectors_SourceLink()
269
260
}
270
261
Assert . True ( result ) ;
271
262
Assert . Contains ( "Passed!" , standardOutput ) ;
272
- AssertCoverage ( standardOutput , checkDeterministicReport : false ) ;
263
+ AssertCoverage ( standardOutput ) ;
273
264
274
265
// delete irrelevant generated files
275
266
DeleteTestIntermediateFiles ( testResultPath ) ;
0 commit comments