Skip to content

Commit 6e1291a

Browse files
sharwellcodemzs
authored andcommitted
Update to coverlet 2.6.0 (#2843)
* Update to coverlet 2.6.0 * Only include SourceLink source in coverage report
1 parent 7f0c1ad commit 6e1291a

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

build/Codecoverage.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<_BranchName Condition="'$(_BranchName)' == ''">$(BUILD_SOURCEBRANCHNAME)</_BranchName>
1818
</PropertyGroup>
1919

20-
<Message Importance="high" Text="&quot;$(_ReportGeneratorPath)&quot; -reports:$(BaseOutputPath)$(PlatformConfig)\coverage\*.coverage -targetdir:$(BaseOutputPath)$(PlatformConfig)\coverage -reporttypes:Cobertura" />
21-
<Exec Command="&quot;$(_ReportGeneratorPath)&quot; -reports:$(BaseOutputPath)$(PlatformConfig)\coverage\*.coverage -targetdir:$(BaseOutputPath)$(PlatformConfig)\coverage -reporttypes:Cobertura" />
20+
<Message Importance="high" Text="&quot;$(_ReportGeneratorPath)&quot; -reports:$(BaseOutputPath)$(PlatformConfig)\coverage\*.coverage -targetdir:$(BaseOutputPath)$(PlatformConfig)\coverage -filefilters:+https*;+*.fs -reporttypes:Cobertura" />
21+
<Exec Command="&quot;$(_ReportGeneratorPath)&quot; -reports:$(BaseOutputPath)$(PlatformConfig)\coverage\*.coverage -targetdir:$(BaseOutputPath)$(PlatformConfig)\coverage -filefilters:+https*;+*.fs -reporttypes:Cobertura" />
2222

2323
<ItemGroup>
2424
<_CodecovArgs Include="-f;$(BaseOutputPath)$(PlatformConfig)\coverage\Cobertura.xml" />

build/Dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<PropertyGroup>
3535
<PublishSymbolsPackageVersion>1.0.0-beta-62824-02</PublishSymbolsPackageVersion>
3636
<CodecovVersion>1.1.1</CodecovVersion>
37-
<CoverletVersion>2.5.1</CoverletVersion>
37+
<CoverletVersion>2.6.0</CoverletVersion>
3838
<ReportGeneratorVersion>4.0.9</ReportGeneratorVersion>
3939
</PropertyGroup>
4040

test/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
<PropertyGroup Condition="'$(Coverage)' == 'true'">
3737
<CollectCoverage>true</CollectCoverage>
38+
<SingleHit>true</SingleHit>
3839
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <!-- https://github.com/tonerdo/coverlet/issues/72 -->
3940
<CoverletOutputFormat>opencover</CoverletOutputFormat>
4041
<CoverletOutput>$(BaseOutputPath)$(PlatformConfig)\coverage\$(MSBuildProjectName).coverage</CoverletOutput>

test/Directory.Build.targets

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,4 @@
88
<AllowedReferenceRelatedFileExtensions>$(AllowedReferenceRelatedFileExtensions);.runtimeconfig.json;.runtimeconfig.dev.json;.deps.json</AllowedReferenceRelatedFileExtensions>
99
</PropertyGroup>
1010

11-
<!-- Workaround for https://github.com/tonerdo/coverlet/pull/318 -->
12-
<Target Name="UpdateTargetPathForCoverage" BeforeTargets="InstrumentModulesNoBuild;InstrumentModulesAfterBuild">
13-
<PropertyGroup>
14-
<_CoverletOriginalTargetPath>$(TargetPath)</_CoverletOriginalTargetPath>
15-
<TargetPath>$([System.IO.Path]::GetDirectoryName($(TargetPath)))\NonExistent.dll</TargetPath>
16-
</PropertyGroup>
17-
</Target>
18-
19-
<Target Name="UpdateTargetPathAfterCoverage" AfterTargets="InstrumentModulesNoBuild;InstrumentModulesAfterBuild">
20-
<PropertyGroup>
21-
<TargetPath>$(_CoverletOriginalTargetPath)</TargetPath>
22-
</PropertyGroup>
23-
</Target>
24-
2511
</Project>

0 commit comments

Comments
 (0)