forked from kiwi-bdd/Kiwi
-
Notifications
You must be signed in to change notification settings - Fork 55
Kiwi FAQ
allending edited this page Nov 15, 2011
·
14 revisions
Q: How do I use Kiwi with UIKit classes?
A: Xcode comes built in with support for 2 types of test targets, Logic Tests and Application Tests. The main difference between them is that an Application test target has a UIApplication instance and main run loop (not entirely accurate but this is the best way to think about it) associated with it.
Most of UIKit requires the presence of a UIApplication to behave properly. Specs that perform operations on UIKit classes (e.g. UILabels) will probably crash weirdly if they are run under anything other than an Application Test. To learn more about how to set up an Application Test target, check out the official Apple docs.