--set-timeout 120 \
${{ parameters.runTestsParameters }}
displayName: 'Test ${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
- condition: always()
+ condition: and(failed())
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testRunTitle: '${{ parameters.configurationName }} ${{ parameters.runTestsName }}'
failTaskOnFailedTests: true
displayName: 'Export ${{ parameters.configurationName }} ${{ parameters.runTestsName }} Results'
- condition: always()
+ condition: and(failed())