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/b055293016fca46466d4d520d6212444 to your computer and use it in GitHub Desktop.
Save jamesmcroft/b055293016fca46466d4d520d6212444 to your computer and use it in GitHub Desktop.
A snippet of the pipelines YAML for running tests and generated coverage
- task: DotNetCoreCLI@2
displayName: 'Run unit tests'
inputs:
command: 'test'
arguments: '/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura'
projects: '**/*UnitTests*.csproj'
testRunTitle: 'Unit Tests'
- task: DotNetCoreCLI@2
displayName: 'Run functional tests'
inputs:
command: 'test'
arguments: '/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura'
projects: '**/*FunctionalTests*.csproj'
testRunTitle: 'Functional Tests'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment