Xcode 7† has a new way to test your UI directly, including a new testing target "iOS UI Testing Bundle" (or "OS X").
In the UI testing target, it appears there's no built-in access to the model or classes that comprise your App. E.g. [UIApplication sharedApplication]
would not be callable from your UI tests.
This implies that "app tests" and "UI tests" exist across a possibly unbridgeable chasm.
As stated here:
The problem is that Xcode’s UI testing does not allow access to the actual app.
Questions:
- Can this chasm be bridged? If so, how, in detail, with build and linker settings and possibly a working
xcodeproj
on github. - Where might a clear statement of this divide to be found, in Apple docs.
† At the time of writing, beta software.