Failing a build on Jenkins when unit tests fail

Hi everyone,

I have a bunch of unit tests in my Xamarin.iOS app, which I run on a CI machine using Jenkins. To do that I use the following command:

/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --launchsim=app/iOS_Tests/bin/iPhoneSimulator/Debug/

The tests seem to be running fine, but their outcome has no effect on the current build, which succeeds even though some tests have failed. How can I communicate the outcome of my tests to Jenkins, so that it marks the build as failed?

Sign In or Register to comment.