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

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 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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

282 views 0 6
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