Jenkins Unit Test Configuration - iOS

173 views
Skip to first unread message

john.c...@bellmedia.ca

unread,
Jan 5, 2016, 2:18:32 PM1/5/16
to Jenkins Users
Hi All:

We've added Unit tests to our iOS project and want them to run when the build completes. We're having problems trying to run the tests. 

So we have a Xcode step in our Jenkins configuration. The custom build options are:

-destination 'platform=iOS Simulator,name=iPhone 6' test.

At the end of the build, which is successful, we get the following error:

xcodebuild: error: Failed to build workspace xxxxxx with scheme xxxxxx.
Reason: A build only device cannot be used to run this target. Build step 'Xcode' marked build as failure Recording test results ERROR: Publisher 'Publish JUnit test result report' failed: No test report files were found. Configuration error? Build step 'Upload to HockeyApp' marked build as failure

There is a device connected to the computer running Jenkins if that is of any importance.

Is there anything else we need to do to get our unit tests to run? Is there a current URL describing the process? The one I read on wiki.jenkins... referred to iOS 4.1, a little old.

Thanks in advance for your time.

Best Regards


John
Reply all
Reply to author
Forward
0 new messages