Browse Source

Update Azure pipelines to report results (#4994)

I didn't have this configured correctly to run on failing builds... obviously that is where this is more useful. Additionally ADO expects XUnit 2, but LIT generates XUnit 1. XUnit 1 is close to JUnit, so we can use that instead.
Chris B 2 years ago
parent
commit
76409423c2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      azure-pipelines.yml

+ 3 - 2
azure-pipelines.yml

@@ -126,6 +126,7 @@ stages:
       displayName: 'DXC tests'
       displayName: 'DXC tests'
     - task: PublishTestResults@2
     - task: PublishTestResults@2
       inputs:
       inputs:
-        testResultsFormat: 'XUnit'
-        testREsultsFiles: '**/testresults.xunit.xml'
+        testResultsFormat: 'JUnit'
+        testResultsFiles: '**/testresults.xunit.xml'
+      condition: succeededOrFailed()