Skip to content

Commit 32a1e2c

Browse files
[build] fail macOS build if tests fail (#94)
Context: https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results#yaml-snippet Context: https://dev.azure.com/xamarin/public/_build/results?buildId=21614&view=ms.vss-test-web.build-test-results-tab Currently, if a test fails on macOS the build will still be green. We need to set `failTaskOnFailedTests` on the `PublishTestResults` step. I also filled out `testRunTitle`, to fix the display name shown on test results.
1 parent 79a0141 commit 32a1e2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

azure-pipelines.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
displayName: 'Run Tests'
4040
inputs:
4141
testAssemblyVer2: 'bin\TestDebug\*-Tests.dll'
42+
testRunTitle: windows-tests
4243
- powershell: |
4344
$hashOfLastVersionChange = & "git" "log" "--follow" "-1" "--pretty=%H" "nuget.version"
4445
$commitsSinceVersionChange = & "git" "rev-list" "--count" "$hashOfLastVersionChange..HEAD"
@@ -80,3 +81,5 @@ jobs:
8081
inputs:
8182
testResultsFormat: NUnit
8283
testResultsFiles: TestResult*.xml
84+
testRunTitle: mac-tests
85+
failTaskOnFailedTests: true

0 commit comments

Comments
 (0)