run/publish test on success and failure

This commit is contained in:
Joe Watkins 2019-06-04 08:10:52 +02:00
parent b2aef9e47a
commit 47a953919f
No known key found for this signature in database
GPG Key ID: F9BA0ADA31CBD89E

View File

@ -21,7 +21,8 @@ steps:
--set-timeout 120 \
${{ parameters.runTestsParameters }}
displayName: 'Test ${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
condition: and(failed())
condition: succeeded()
condition: failed()
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
@ -29,4 +30,5 @@ steps:
testRunTitle: '${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
failTaskOnFailedTests: true
displayName: 'Export ${{ parameters.configurationName }} ${{ parameters.runTestsName }} Results'
condition: and(failed())
condition: succeeded()
condition: failed()