We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8259f commit 983d18aCopy full SHA for 983d18a
azure-pipelines.yml
@@ -44,6 +44,14 @@ stages:
44
- script: |
45
docker create --name build-container build-image
46
docker cp build-container:./app/CSharpFunctionalExtensions.Tests/TestResults ./testresults
47
+
48
+ # This will make sure that the pipeline fails if the tests were not executed for any reason
49
+ if [ ./testresults/testresults.trx ] && [ $(grep -E "<UnitTestResult" ./testresults/testresults.trx -c) -gt 0 ]; then
50
+ echo "Test results results found"
51
+ else
52
+ echo "No test results found"
53
+ exit 1
54
+ fi
55
displayName: Extract test results
56
57
- task: PublishTestResults@2
0 commit comments