Bamboo Xcode Plugin and OC Test results


I'am trying to use the new beta5 Bamboo Xcode plugin.

It works fine for building (multiple) target(s). But when I check the "Include OCUnit/SenTestKit Test results" option, the build fails.

In fact, the build himself is successfull, but bamboo does not find tests results ("Failing task since test cases were expected but none were found."). This unit tests are running normaly on my mac.

Is there any particular configuration/target to set in order to run unit tests on the bamboo server ?

Thank you


4 answers

Sorry for the late reply, but does it work with the latest plugin release?

This is probably dredging up an old issue, but I'm seeing this problem as well. I have OCUnit tests in my project, and the plugin finds 0 tests and fails the whole build. Was there ever a resolution to this problem?

Do you have the configuration configured in the task that can run the OCUnit tests? If Bamboo can't find the test output in the build log and it expects tests, it will fail the build.

I'm going to dredge this up again now, sorry. Using 1.8 of the plugin: Unit tests run properly (with "build all targets" checked) - the output and everything shows up in the logs. However I'm getting the error "Failing task since test cases were expected but none were found." Don't really know what to do here. If I uncheck the option to put tests in Bamboo then it all works fine, it would be nice to get the tests integrated though. Any chance of a solution to this problem?

I'm having the same issue. Following the instructions in the Xcode documentation at, Bamboo is still unable to see my unit tests and fails saying "Failing task since test cases were expected but none were found."

Can anyone suggest a fix? I've verified my Xcode build task works correctly and my build plan is successful without checking "Include OCUnit/SenTestKit Test results" however as soon as I do I get this error. I have logic tests in place and have added the script below to my logic tests target.

if [ "$RUN_UNIT_TEST_WITH_IOS_SIM" = "YES" ]; then
ios-sim launch "$(dirname "$TEST_HOST")" --setenv DYLD_INSERT_LIBRARIES=/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection --setenv XCInjectBundle="$test_bundle_path" --setenv XCInjectBundleInto="$TEST_HOST" --args -SenTest All "$test_bundle_path"
echo "Finished running tests with ios-sim"

Same problem here, any suggestion?

Can we get a resolution to this? I also have issues running tests.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

447 views 8 26
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you