Skip to content

Instantly share code, notes, and snippets.

@jamesmcroft
Last active September 9, 2020 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmcroft/40bfe0cd5068969f827b685ad084cf99 to your computer and use it in GitHub Desktop.
Save jamesmcroft/40bfe0cd5068969f827b685ad084cf99 to your computer and use it in GitHub Desktop.
A snippet of a pipelines YAML showing the ReportGenerator tool in use
- task: reportgenerator@4
inputs:
reports: '$(Build.SourcesDirectory)/**/*.cobertura.xml'
targetdir: '$(Build.SourcesDirectory)/CoverageResults'
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(Build.SourcesDirectory)/CoverageResults/Cobertura.xml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment