diff --git a/devops/templates/publish-cov.yml b/devops/templates/publish-cov.yml index 8b78637..efabfbb 100644 --- a/devops/templates/publish-cov.yml +++ b/devops/templates/publish-cov.yml @@ -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 diff --git a/devops/templates/publish-test-results.yml b/devops/templates/publish-test-results.yml new file mode 100644 index 0000000..9f82c55 --- /dev/null +++ b/devops/templates/publish-test-results.yml @@ -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' \ No newline at end of file