Re: SenTestKit: debugging test cases under Xcode? [resolved]
Re: SenTestKit: debugging test cases under Xcode? [resolved]
- Subject: Re: SenTestKit: debugging test cases under Xcode? [resolved]
- From: Kaelin Colclasure <email@hidden>
- Date: Tue, 23 Nov 2004 19:10:37 -0800
On Nov 23, 2004, at 4:44 PM, Marco Scheurer wrote:
On Nov 23, 2004, at 23:35, Kaelin Colclasure wrote:
I'm ramping up on Marco's excellent OCUnit / SenTestKit framework,
and there's one item I haven't been able to figure out from the
included documentation / examples or the StepWise article: How do I
run my test cases under the debugger in Xcode? (I'm using Xcode 2.0,
but I believe an answer for 1.5 should be translatable.)
The documentation covers this for ProjectBuilder, but I'm not
familiar enough with PB to interpolate the instructions there.
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?
Hello,
You should have some doc about XCode integration in the distribution,
which describes how to do this (however I agree it's not obvious).
.../Extras/Xcode Integration/Documentation/index.html
"If your project has no executable (for instance a framework):
- create a "New Custom Executable";
- in the assistant, use otest as the name, and give the path to otest;
- in the executable editor, specify the path of the unit to be tested.
For instance: -SenTest Self /Developer/Builds/Test.framework. (Fig. 3)
[...]
Fig. 3: otest as executable.
When you run run or debug this executable, tests results will appear
in the Run or Debug console.
[...] can be useful when debugging a failed test."
Please let me know if that does not work. We haven't used OCUnit with
XCode 2.0 yet.
Simple enough, once you pointed me to the right bit of doco. :-) I was
not looking under Extras/...
[FWIW, the Xcode integration seems to be working beautifully for me.]
-- Kaelin
Thanks,
marco
Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
_______________________________________________
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