File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,21 @@ steps:
2525 inputs :
2626 command : test
2727 projects : ' **/*[Tt]ests/*.csproj'
28- arguments : ' --configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura'
29-
30- - task : Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@5
31- displayName : ReportGenerator
32- inputs :
33- reports : ' $(Agent.TempDirectory)/**/coverage.cobertura.xml'
34- targetdir : ' $(Build.SourcesDirectory)/coverlet/reports -reporttypes:"Cobertura"'
35- # reporttypes: 'HtmlInline_AzurePipelines;Cobertura;Badges'
36- # assemblyfilters: '-xunit\*'
28+ arguments : ' --configuration $(BuildConfiguration) --collect "XPlat Code coverage" -- RunConfiguration.DisableAppDomain=true'
29+
30+ - script : ' dotnet tool install --global dotnet-reportgenerator-globaltool --version 4.5.8'
31+ displayName : ' Install ReportGenerator tool'
32+
33+ - script : ' reportgenerator -reports:$(Agent.TempDirectory)/**/coverage.cobertura.xml -targetdir:$(Build.SourcesDirectory)/coverlet/reports -reporttypes:"Cobertura"'
34+ displayName : ' Create reports'
35+
36+ # - task: Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@5
37+ # displayName: ReportGenerator
38+ # inputs:
39+ # reports: '$(Agent.TempDirectory)/**/coverage.cobertura.xml'
40+ # targetdir: '$(Build.SourcesDirectory)/coverlet/reports -reporttypes:"Cobertura"'
41+ # #reporttypes: 'HtmlInline_AzurePipelines;Cobertura;Badges'
42+ # #assemblyfilters: '-xunit\*'
3743
3844- task : PublishCodeCoverageResults@1
3945 displayName : ' Publish code coverage from $(Build.SourcesDirectory)/coverlet/reports/coverage.cobertura.xml'
You can’t perform that action at this time.
0 commit comments