Xcode unit tests are never executed
Xcode unit tests are never executed
- Subject: Xcode unit tests are never executed
- From: Tim Schmidt <email@hidden>
- Date: Mon, 15 Jun 2009 17:57:58 PDT
Hi all,
I am fairly inexperienced in regards to ObjC/Cocoa development, so
please be gentle :-). I am having intermittent issues with Xcode's 3.x
unit test bundle injection mechanism (namely it never actually
executes my tests, when building the unittest target):
I set up a basic Cocoa project with some pet class, add a UnitTest
bundle, make it dependent on the main target and set Bundle_Loader and
Test_Host properties (as always). Then I add a test class to the
UnitTest target with some 'hard fail' test, such as:
- (void) testFail
{
STAssertEqual(YES,NO,@"should fail");
}
I have checked that the load script actually executes (by adding a say
command). It also executes the actual app during building of the
unittest target (another system(say ...) in main), but never any of
the actual tests. It seems that the actual UnitTest bundle is never
injected into the app. This is intermittent in the sense that it works
(as it always has) for some projects, but not for others. It is really
frustrating, as I have lost quite a few hours on getting this to work.
Best regards, and a lot of thanks in advance,
Tim
_______________________________________________
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