Re: SenTestKit: debugging test cases under Xcode?
Re: SenTestKit: debugging test cases under Xcode?
- Subject: Re: SenTestKit: debugging test cases under Xcode?
- From: Chris Hanson <email@hidden>
- Date: Tue, 23 Nov 2004 18:14:02 -0800
On Nov 23, 2004, at 2:35 PM, Kaelin Colclasure wrote:
The specific scenario I have is: My unit tests were added to an
existing Xcode framework project as a separate Test Framework target.
This neatly segregates my unit test code from the shipping framework
code. My impression from what I've read is that I need to run otest
with some magic arguments / environment that will cause my test
framework to be loaded... But what are the necessary incantations?
Create a custom executable in your project for otest. Pass it
MyFramework.framework as an argument and tell it to use your build
directory as its working directory. You should also give the custom
executable a DYLD_FRAMEWORK_PATH environment variable that points to
your build directory. (RunTargetUnitTests script does this too.)
Once you've done this, you can debug the executable just like any other.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden