Skip to content

Commit f29586f

Browse files
committed
Update adt_pull_request.yml for Azure Pipelines
1 parent ab2db28 commit f29586f

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

adt_pull_request.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)