On Fri, Oct 3, 2008 at 10:01 PM, Brent Hargrave <[EMAIL PROTECTED]> wrote: > To unit test an XML parsing method, I would like keep a dummy XML file in a > project directory and import it into my FooTests class as a fixture of > sorts. What is the right way to do this sort of thing?
Add it to the project, and then add it to the test's target. You should then be able to reference it using -[NSBundle pathForResource:ofType:]. I'm not 100% that's the way OCUnit/SenTest targets work, but it would surprise me if they worked otherwise. Hope that helps, -Colin _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]