Separate test report in a template

This commit is contained in:
Jianjie Liu (MAIDAP) 2021-01-27 14:12:40 -05:00
Родитель 190d823afc
Коммит b534f479ed
2 изменённых файлов: 17 добавлений и 13 удалений

Просмотреть файл

@ -1,18 +1,6 @@
parameters:
- name: pyVersion
type: string
# Template for publishing code coverage report
steps:
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'junit/*.xml'
searchFolder: $(Build.SourcesDirectory)
testRunTitle: $(Agent.OS) py$(pyVersion) Build
buildPlatform: $(Agent.OS)
condition: always() # Always publish test results
displayName: 'Publish unit test report'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura

Просмотреть файл

@ -0,0 +1,16 @@
# Template for publishing test result report
parameters:
- name: pyVersion
type: string
steps:
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'junit/*.xml'
searchFolder: $(Build.SourcesDirectory)
testRunTitle: $(Agent.OS) py$(pyVersion) Build
buildPlatform: $(Agent.OS)
condition: always() # Always publish test results
displayName: 'Publish unit test report'