title: Fail Jenkins build when xUnit tests do not pass
body: <p>I have Jenkins building my C# .NET Core api project. I added some xUnit tests and included a powershell script inside of my Jenkins build with the "dotnet test" command to execute the tests.
  That all works well and the tests are run and i can see the output in the Jenkins console. 
  The problem is that if i have failing tests nothing happens - jenkins goes merrily along and finished up the build process and reports it as a success. </p>
  
  <p>How can i get it to fail the build?</p>
  
  <p>Is there a response from the 'dotnet test' command?</p>
  
  <p>I know there are xUnit Jenkins plugins but they all seem to revolve around "display the results of xUnit tests". Which is not really what i am after. I want to ACT on the results of the tests, not just see them in fancy html.</p>