From 878f220fb8630906da6c40924913af847df730e7 Mon Sep 17 00:00:00 2001 From: Juan Hoyos Date: Thu, 14 Nov 2019 11:54:22 -0800 Subject: [PATCH] Try using the test reporter to report tests (#615) 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 --- eng/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/eng/build.yml b/eng/build.yml index 316d7897a..4b0ccb13f 100644 --- a/eng/build.yml +++ b/eng/build.yml @@ -193,3 +193,17 @@ jobs: 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 -- 2.34.1