Re: Automated unit-testing for iOS?
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