File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 10
10
inputs :
11
11
command : ' test'
12
12
projects : ' test/*Tests/*.csproj'
13
- arguments : ' --configuration $(buildConfiguration)'
13
+ arguments : ' --configuration $(buildConfiguration)' --collect:"XPlat Code Coverage"'
14
+
15
+ - task : reportgenerator@5
16
+ displayName : ' Generate Code Coverage Report'
17
+ inputs :
18
+ reports : ' $(Agent.TempDirectory)/**/coverage.cobertura.xml'
19
+ targetdir : ' $(Build.SourcesDirectory)/coveragereport'
20
+ reporttypes : ' Cobertura;HtmlInline_AzurePipelines'
21
+
22
+ - task : PublishCodeCoverageResults@1
23
+ displayName : ' Publish Code Coverage Results'
24
+ inputs :
25
+ codeCoverageTool : ' Cobertura'
26
+ summaryFileLocation : ' $(Build.SourcesDirectory)/coveragereport/Cobertura.xml'
27
+ reportDirectory : ' $(Build.SourcesDirectory)/coveragereport'
Original file line number Diff line number Diff line change 13
13
</PropertyGroup >
14
14
15
15
<ItemGroup >
16
+ <PackageReference Include =" coverlet.collector" Version =" 6.0.4" >
17
+ <PrivateAssets >all</PrivateAssets >
18
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
19
+ </PackageReference >
16
20
<PackageReference Include =" Moq" Version =" 4.20.72" />
17
21
<PackageReference Include =" nunit" Version =" 4.3.2" />
18
22
<PackageReference Include =" NUnit3TestAdapter" Version =" 5.0.0" >
You can’t perform that action at this time.
0 commit comments