OCUnit and main bundle
OCUnit and main bundle
- Subject: OCUnit and main bundle
- From: Giuseppe Alletti <email@hidden>
- Date: Thu, 17 Feb 2005 17:15:13 +0100
I have a project with two targets:
1 - PageViewEditor, wich is the Cocoa app.
2 - PageViewEditorTest, wich is a testing framework created with OCUnit.
In the first target, I have a class that initializes a static variable
with the content of a plist file. The path to the plist file is
determined via [[NSBundle mainBundle] pathForResource:@"filename"
ofType:@"plist"]
When I use the class in the testing framework, the plist file is not
found, since the path to mainBundle results to be /Developer/Tools.
The testing framework is set to execute test cases at build time, via
the Shell Script build phase created automatically by the target
template.
Is there a way to force the testing framework to resolve correctly the
mainBundle path? Or otherwise is there a way to make my class read the
right file differently?
Thank you,
-----------------------
Giuseppe Alletti
_______________________________________________
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