Skip to content

Commit

Permalink
Separate test report in a template
Browse files Browse the repository at this point in the history
  • Loading branch information
Jianjie Liu (MAIDAP) committed Jan 28, 2021
1 parent 190d823 commit b534f47
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
14 changes: 1 addition & 13 deletions devops/templates/publish-cov.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 16 additions & 0 deletions devops/templates/publish-test-results.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit b534f47

Please sign in to comment.