We are running our unit tests in Jenkins with the following options:
The problem is, if a test fails, it marks the build “unstable”. I’m guessing that unity.exe is not giving an error code that stops the rest of the build. How can I fail the build when tests fail?
Well, I found one way. Install the Text Finder Plugin, and then set it up like so:
I’m guessing since there are no answers, that there isn’t a way to make unity.exe give a bad exit code. It would be nice though, since nunit and mstest both do this when you run them command line.