Bamboo Xcode Plugin and OC Test results

Hi,

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

Michel

4 answers

This widget could not be displayed.

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?

This widget could not be displayed.

I'm having the same issue. Following the instructions in the Xcode documentation at https://confluence.atlassian.com/display/BAMBOO/Xcode, 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
test_bundle_path="$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.$WRAPPER_EXTENSION"
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"
else
"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
fi

This widget could not be displayed.

Same problem here, any suggestion?

This widget could not be displayed.

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 Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

477 views 3 17
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