• 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: Automated unit-testing for iOS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automated unit-testing for iOS?


  • Subject: Re: Automated unit-testing for iOS?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 02 Sep 2011 09:17:01 -0700


On Sep 2, 2011, at 5:24 AM, Paul Summermatter wrote:

I guess I'm still not understanding what you are trying to do.  We run our tests on an xserve.  Per my earlier e-mail, GHUnit has a CLI option.  To be honest, I'm not sure exactly what's going on underneath the covers, but it seems you can run your iOS unit tests outside of a GUI simulator, because all of this is run in an automated fashion without any GUI login.

That’s … kind of weird that you can do that. I am guessing that you are running “logic tests” (i.e. they don’t require launching the app), they don’t call any iOS-specific frameworks like UIKit, and they use only functionality that’s common to iOS and Mac OS (even at the Foundation level there are API differences.) In that case you would be able to run the unit tests as though they were Mac code.

The problem is that the environment of your tests is now potentially very different than what your app runs in. There are some core OS APIs that are entirely different between the two platforms (i.e. Security) and some that have subtly different semantics. 

In our case I’m not sure if we could get away with this. The code we’re testing is faceless (it’s basically starting an in-process networked database engine and feeding it commands over HTTP) but there are already enough places we’ve run into platform differences that I’m unsure whether it would run unmodified in a Mac environment.

—Jens
 _______________________________________________
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

References: 
 >Automated unit-testing for iOS? (From: Jens Alfke <email@hidden>)
 >Re: Automated unit-testing for iOS? (From: Thomas Engelmeier <email@hidden>)
 >Re: Automated unit-testing for iOS? (From: Jens Alfke <email@hidden>)
 >Re: Automated unit-testing for iOS? (From: Paul Summermatter <email@hidden>)
 >Re: Automated unit-testing for iOS? (From: Jens Alfke <email@hidden>)
 >Re: Automated unit-testing for iOS? (From: Paul Summermatter <email@hidden>)
 >Re: Automated unit-testing for iOS? (From: Jens Alfke <email@hidden>)
 >Re: Automated unit-testing for iOS? (From: Paul Summermatter <email@hidden>)

  • Prev by Date: Re: How To Fix the Products Group?
  • Next by Date: Xcode 4.1 Font Size settings
  • Previous by thread: Re: Automated unit-testing for iOS?
  • Next by thread: Re: Automated unit-testing for iOS?
  • Index(es):
    • Date
    • Thread