Use the AzDO pipeline reporter for xUnit style tests:
- This adds a per test report per run.
- Reports are now seen in the tests tab of a pipeline run as well as a tally in GitHub
ArtifactName: Logs_$(_PhaseName)_$(_BuildArch)_$(_BuildConfig)
continueOnError: true
condition: always()
+
+ # Publish test results to Azure Pipelines
+ - task: PublishTestResults@2
+ inputs:
+ testResultsFormat: xUnit
+ testResultsFiles: '**/*UnitTests*.xml'
+ searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults'
+ failTaskOnFailedTests: true
+ testRunTitle: 'Tests $(_PhaseName) $(_BuildArch) $(_BuildConfig)'
+ publishRunAttachments: true
+ mergeTestResults: true
+ buildConfiguration: ${{ parameters.name }}
+ continueOnError: true
+ condition: always()
\ No newline at end of file