Skip to content

Commit

Permalink
Merge pull request #41 from Readify/pipeline-test-failures
Browse files Browse the repository at this point in the history
Properly fail pipeline when Pester tests fail. [skip ci]
  • Loading branch information
RobFaie authored Mar 30, 2020
2 parents 89aedb9 + 3c8a03b commit 513a294
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 513a294

Please sign in to comment.