Re: iOS "library" unit test of iOS code?
Re: iOS "library" unit test of iOS code?
- Subject: Re: iOS "library" unit test of iOS code?
- From: Rick Mann <email@hidden>
- Date: Mon, 24 Apr 2017 15:50:17 -0700
Also, in this case, it can be a macOS thing; the code should run equally well, assuming the dylib I depend on can load (it might've been built against the iOS SDK).
> On Apr 24, 2017, at 15:48 , Jens Alfke <email@hidden> wrote:
>
>
>> On Apr 24, 2017, at 3:38 PM, Rick Mann <email@hidden> wrote:
>>
>> I'm trying to test some code that's entirely stand-alone from my app, and in fact I'm having trouble testing it within my app because the app does some things that interfere.
>>
>> So, I tried creating a new test target and specifying "None" for the Test Host, then adding the files needed to the new test target.
>
> You can’t do that in iOS — all tests have to be run within an app.
> If you can’t run them in your regular app, you need to make a new empty app and then test them in that.
>
> —Jens
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden