I'm trying to create a build pipeline on Azure DevOps which is going to run a series of integration tests based on Pact .Net inside of a Docker container.
How can I break this pipeline if any of these tests fail?
Note that the tests are being run inside of an XUnit project in my container.
Try running the tests in Command-line with
dotnet test
orvstest.console.exe
command, then we can addfailOnStderr: false
to break the pipeline if there's any error written to the StandardError stream.