Making Application Classes Available to Unit Tests
Making Application Classes Available to Unit Tests
- Subject: Making Application Classes Available to Unit Tests
- From: Mark Kieling <email@hidden>
- Date: Thu, 09 Apr 2009 16:02:24 -0700
Hi,
I am new to unit testing in Xcode (3.1.3) using the SenTest framework.
My tests get linking errors if they reference application defined
classes.
I have set up my iPhone project with a target for unit tests. I have
added the following environment variables to the executable as well as
the "-SenTest All" argument.
DYLD_INSERT_LIBRARIES
XCInjectBundle
XCInjectBundleInto
DYLD_FALLBACK_FRAMEWORK_PATH
The test target has been made a dependency of the app target. However
the tests only appear to run at compile time.
I would like to have the test run in the app when it launches (in the
simulator of course) and exercise application classes. Any suggestions
on how to debug this or how to configure Xcode to do what I want to do
would be greatly appreciated.
- Mark
_______________________________________________
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