- Home /
Unity Test Tools + Jenkins CI
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?
Answer by jonathanpeppers · Apr 22, 2014 at 01:21 PM
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.
Does it work for recent versions of Unity? I am using the 2019 version.
Your answer
Follow this Question
Related Questions
Which version of NUnit ships with Unity? Can't find [TestFixtureSource] attribute. 3 Answers
Unit testing for MonoBehaviours 2 Answers
Is it possible to get "traditional" nunit working in a Unity solution? 0 Answers
Unit Testing Rigidbody2D without polluting scene with gameobjects 1 Answer
Unity 5.6 Unit Testing 1 Answer