Skip to content

Commit

Permalink
On failure, upload test results as an artifact.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtivel committed Sep 17, 2024
1 parent d018f75 commit c7493c5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .vsts-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,13 @@ stages:
-prepareMachine
name: Build
displayName: Build and run tests
condition: succeeded()
condition: succeeded()
- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFormat: xUnit
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/TestResults/**/*.xml'
mergeTestResults: true
searchFolder: $(System.DefaultWorkingDirectory)
testRunTitle: sign unit tests - $(Agent.JobName)
condition: failed()

0 comments on commit c7493c5

Please sign in to comment.