Re: OCUnit and main bundle
Re: OCUnit and main bundle
- Subject: Re: OCUnit and main bundle
- From: Marco Scheurer <email@hidden>
- Date: Thu, 17 Feb 2005 18:37:19 +0100
On Feb 17, 2005, at 17:48PM, Tim Hart wrote:
I [...] determined that in my case it was more 'correct' to call
[NSBundle bundleForClass:[self class]];
than to look for the main bundle.
In my case, I realized that I wanted to pair the resource (the plist)
with whatever bundle the class itself was compiled in - not the main
bundle of the application.
Yes, that would be my first suggestion.
An alternative you can try is to launch the application itself in test
mode, by specifying
-SenTest Self
as an argument. Your application should launch, execute linked tests,
writing the results in the console and quit (note that in order for the
tests to be found ZeroLink must be off, or you must use a workaround,
as described in the kit).
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