File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 9
9
10
10
<ItemGroup >
11
11
<PackageReference Include =" ApprovalTests" Version =" 5.4.5" />
12
- <PackageReference Include =" coverlet.msbuild" Version =" 2.9.0 " />
12
+ <PackageReference Include =" coverlet.msbuild" Version =" 3.0.1 " PrivateAssets = " all " />
13
13
<PackageReference Include =" FluentAssertions" Version =" 5.10.3" />
14
14
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.8.3" />
15
15
<PackageReference Include =" Microsoft.NETFramework.ReferenceAssemblies" Version =" 1.0.0" />
26
26
<CoverletOutputFormat >cobertura</CoverletOutputFormat >
27
27
</PropertyGroup >
28
28
29
- <!-- Remove this target once https://github.com/coverlet-coverage/coverlet/pull/932 is merged and a new version of coverlet.msbuild is released -->
30
- <Target Name =" CollectCoverletReport" AfterTargets =" GenerateCoverageResultAfterTest" >
31
- <ItemGroup >
32
- <CoverletReport Include =" $(CoverletOutput)*.*" />
33
- </ItemGroup >
34
- </Target >
35
-
36
- <Target Name =" GenerateHtmlCoverageReport" AfterTargets =" CollectCoverletReport" Condition =" $(ContinuousIntegrationBuild) != 'true'" >
29
+ <Target Name =" GenerateHtmlCoverageReport" AfterTargets =" GenerateCoverageResultAfterTest" Condition =" $(ContinuousIntegrationBuild) != 'true'" >
37
30
<PropertyGroup >
38
31
<CoverageReportDirectory >$(CoverletOutput)report</CoverageReportDirectory >
39
32
<OpenCommand Condition =" $([MSBuild]::IsOSPlatform('Linux'))" >xdg-open</OpenCommand >
44
37
<Exec Command =" $(OpenCommand) " $(CoverageReportDirectory)/index.html" " Condition =" $(OpenCommand) != ''" />
45
38
</Target >
46
39
47
- <Target Name =" UploadCoverageToCodecov" AfterTargets =" CollectCoverletReport " Condition =" $(ContinuousIntegrationBuild) == 'true'" >
40
+ <Target Name =" UploadCoverageToCodecov" AfterTargets =" GenerateCoverageResultAfterTest " Condition =" $(ContinuousIntegrationBuild) == 'true'" >
48
41
<!-- For reference: the file `.config/dotnet-tools.json` was created by running `dotnet new tool-manifest && dotnet tool install Codecov.Tool` -->
49
42
<Exec Command =" dotnet tool restore" />
50
43
<Exec Command =" dotnet codecov --file " @(CoverletReport, '" " ')" " />
You can’t perform that action at this time.
0 commit comments