Skip to content

Commit

Permalink
Properly fail pipeline when Pester tests fail. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
RobFaie committed Mar 29, 2020
1 parent 89aedb9 commit 3c8a03b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ stages:
Set-Location -Path '$(Pipeline.Workspace)'
Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Mac.xml" -OutputFormat NUnitXML
displayName: Pester
continueOnError: true
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: 'Test-Pester-Mac.xml'
Expand Down Expand Up @@ -106,8 +106,8 @@ stages:
Set-Location -Path '$(Pipeline.Workspace)'
Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Ubuntu.xml" -OutputFormat NUnitXML
displayName: Pester
continueOnError: true
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: 'Test-Pester-Ubuntu.xml'
Expand Down Expand Up @@ -135,8 +135,8 @@ stages:
Set-Location -Path '$(Pipeline.Workspace)'
Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Win2019.xml" -OutputFormat NUnitXML
displayName: Pester
continueOnError: true
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: 'Test-Pester-Win2019.xml'
Expand Down Expand Up @@ -164,8 +164,8 @@ stages:
Set-Location -Path '$(Pipeline.Workspace)'
Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Win2016.xml" -OutputFormat NUnitXML
displayName: Pester
continueOnError: true
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: 'Test-Pester-Win2016.xml'
Expand Down

0 comments on commit 3c8a03b

Please sign in to comment.