steps:
- task: PublishTestResults@2
inputs:
testResultsFormat: JUnit
testResultsFiles: $(System.DefaultWorkingDirectory)/junit.xml
displayName: "Publish test results"
condition: and(variables.ENABLE_TEST_RESULTS, succeededOrFailed())