| iOS Development Discussion on developing apps for the iOS platform. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Aug 27, 2011
Posts: 6
![]() |
I am trying to write an appliction for the iPad using Xcode 4.3 and a 3rd party game engine. I also want to write unit test for the components in my application.
Currently I'm trying to write a unit test for an object performs some operations during initialization of the application. Basically the object will obtain an instance of another object (provided via a mock in the unit test) and does something with that other object. The problem right now is that the code exists in the initialization phase of the application. This means that before the unit test can actually run the application itself gets launched and tries to initialize itself. The object under test tried to obtain the other object it needs. This fails because the functionality has been written yet (I'm still trying to write the tests for it) and the application dies before the test can run. The whole fact that the application even tries to run during the unit test seems totally screwy from the way unit testing is actually done. How is someone supposed to unit test code like this? |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| 3ware RAID driver | Das_Human | OS X - Development and Darwin | 4 | 08-08-2009 09:17 PM |
| Malicious code .... how much of a risk taker are you ? | McBie | Schweb's Lounge | 4 | 12-13-2008 12:52 PM |
All times are GMT -4. The time now is 10:21 PM.
Powered by vBulletin