Hi there,
As a good boy, I've tried to run unit tests on my code.
So I created an Objective-C test case class.
Then I created a Cocoa unit test bundle target, I added the test case
source files to the compile source build phase of the new target, added
the SenTestingKit framework to link with and build...
But now how do I tell XCode to build this specific target ?
Thanks for your help
brieuc
Michael Ash - 14 Oct 2005 20:04 GMT
Brieuc wrote:
> Hi there,
>
[quoted text clipped - 5 lines]
>
> But now how do I tell XCode to build this specific target ?
There are two popups in your project window's toolbar, one for setting the
target and one for setting the build style. If they aren't there,
customize your toolbar and add them. They can also be set under the
Project menu.

Signature
Michael Ash
Rogue Amoeba Software
Mark - 14 Oct 2005 20:10 GMT
In the upper left corner of the project window is a menu with the
targets in your project. Choose your unit testing target from the menu
to make the unit testing target the active target. Now when you build
your project, Xcode will build the unit testing target.
For unit testing to work, you also have to make your program's target a
direct dependency of the unit testing target. By creating the direct
dependency, Xcode builds your program when it builds the unit testing
target. To create the direct dependency:
1. Select the unit testing target from the Groups and Files list.
2. Click the Info button to open the target's information panel.
3. Click the General tab.
4. Click the + button to add a direct dependency.
5. Choose a target from the sheet that opens and click the Add Target
button.
Mark Szymczyk
Author, Xcode Tools Sensei
http://www.meandmark.com