Re: Automated unit-testing for iOS?
Re: Automated unit-testing for iOS?
- Subject: Re: Automated unit-testing for iOS?
- From: Chris Hanson <email@hidden>
- Date: Thu, 01 Sep 2011 17:40:51 -0700
On Sep 1, 2011, at 1:05 PM, Jens Alfke <email@hidden> wrote:
> Here’s what I’ve got:
> Xcode appears to run tests by invoking the shellscript /Developer/Tools/RunUnitTests.
This is actually not how Xcode 4 runs your tests via the Test action. Xcode natively knows how to run tests from a target generating an octest bundle, and will run them under the debugger so breakpoints are hit.
The Run Script build phase is still generated for backwards-compatibility purposes (so you can take an Xcode 4 project to Xcode 3.2) but the script itself suppresses its execution as a result of the build
setting "Test After Build" having a default value of NO in Xcode 4.
For OS X targets you can override this build setting via the xcodebuild command line (by passing TEST_AFTER_BUILD=YES) and use that to run your tests on a continuous integration server.
I don't know if there's a way to do that for iOS, sorry.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden