How to fail the build pipeline if “Tests Failed” in azure pipelines?
问题 I want to fail the build pipeline if a single test failed with azure pipelines. Azure can successfully detect that my tests entered a failed state however it gives a success state to the entire build pipeline: The question is how to make azure give a failed build state if the tests stage failed? Here's my azure-pipelines.yml : # Build ASP.NET Core project using Azure Pipelines # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core?view=vsts pool: vmImage: 'Ubuntu 16.04'