Re: unit testing...
Re: unit testing...
- Subject: Re: unit testing...
- From: Chris Hanson <email@hidden>
- Date: Thu, 27 Dec 2007 17:56:41 -0800
On Dec 27, 2007, at 9:55 AM, Bill Dudney wrote:
I am unable to get unit testing to happen on a very simple
application.
Steps:
1) Create Unit Testing Bundle (called UnitTests in the attached
project)
2) add the app as a dependency
3) switch to the unit test bundle as the active target
4) specify Bundle Loader and Test Rig to be the application
executable for the unit test target
5) add the -SenTest All argument to the Executable (called DizBot in
this example)
6) add DYLD_INSERT_LIBRARIES = $(DEVELOPER_LIBRARY_DIR)/
PrivateFrameworks/DevToolsBundleInjection.framework/
DevToolsBundleInjection and XCInjectBundle to UnitTests.octest to
the variables
When I build and go i get;
There's one more step you need, assuming you're using Xcode on Leopard
(since you didn't specify):
7) Add a DYLD_FALLBACK_FRAMEWORK_PATH entry to your executable's
environment variables, and specify $(DEVELOPER_LIBRARY_DIR)/Frameworks
as its value.
This will be used to resolve the @rpath-relative install path used for
SenTestingKit.framework.
If your tests are GC-required, you will also need to add "set start-
with-shell 0" (without quotes) to your ~/.gdbinit file, to avoid Xcode
trying to inject the (GC-required) test bundle into the shell gdb uses
to sub-launch the application.
-- Chris
_______________________________________________
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