@@ -77,8 +77,8 @@ stages:
7777 Set-Location -Path '$(Pipeline.Workspace)'
7878 Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Mac.xml" -OutputFormat NUnitXML
7979 displayName: Pester
80- continueOnError: true
8180 - task : PublishTestResults@2
81+ condition : succeededOrFailed()
8282 inputs :
8383 testResultsFormat : ' NUnit'
8484 testResultsFiles : ' Test-Pester-Mac.xml'
@@ -106,8 +106,8 @@ stages:
106106 Set-Location -Path '$(Pipeline.Workspace)'
107107 Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Ubuntu.xml" -OutputFormat NUnitXML
108108 displayName: Pester
109- continueOnError: true
110109 - task : PublishTestResults@2
110+ condition : succeededOrFailed()
111111 inputs :
112112 testResultsFormat : ' NUnit'
113113 testResultsFiles : ' Test-Pester-Ubuntu.xml'
@@ -135,8 +135,8 @@ stages:
135135 Set-Location -Path '$(Pipeline.Workspace)'
136136 Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Win2019.xml" -OutputFormat NUnitXML
137137 displayName: Pester
138- continueOnError: true
139138 - task : PublishTestResults@2
139+ condition : succeededOrFailed()
140140 inputs :
141141 testResultsFormat : ' NUnit'
142142 testResultsFiles : ' Test-Pester-Win2019.xml'
@@ -164,8 +164,8 @@ stages:
164164 Set-Location -Path '$(Pipeline.Workspace)'
165165 Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Win2016.xml" -OutputFormat NUnitXML
166166 displayName: Pester
167- continueOnError: true
168167 - task : PublishTestResults@2
168+ condition : succeededOrFailed()
169169 inputs :
170170 testResultsFormat : ' NUnit'
171171 testResultsFiles : ' Test-Pester-Win2016.xml'
0 commit comments