• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS "library" unit test of iOS code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: iOS "library" unit test of iOS code?
      • From: Rick Mann <email@hidden>
    • Re: iOS "library" unit test of iOS code?
      • From: Rick Mann <email@hidden>
References: 
 >iOS "library" unit test of iOS code? (From: Rick Mann <email@hidden>)

  • Prev by Date: iOS "library" unit test of iOS code?
  • Next by Date: Re: iOS "library" unit test of iOS code?
  • Previous by thread: iOS "library" unit test of iOS code?
  • Next by thread: Re: iOS "library" unit test of iOS code?
  • Index(es):
    • Date
    • Thread