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: Jens Alfke <email@hidden>
- Date: Mon, 24 Apr 2017 15:48:22 -0700
> 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
_______________________________________________
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