Thanks. I finally got over the hump -- it turned out to be that the test cases were not in the right target.

Now that that's fixed I'm trying to get debugging of the framework working and I keep getting a launch path not accessible error. I added the executable target and set the arguments to

-SenTest All
Section Tests.octest

and my environment variables to:

DYLD_LIBRARY_PATH $(BUILT_PRODUCTS_DIR)
DYLD_FRAMEWORK_PATH $(BUILT_PRODUCTS_DIR)
OBJC_DISABLE_GC YES

otest runs but gives the following error:

objc[46258]: GC: forcing GC OFF because OBJC_DISABLE_GC is set
Running…
objc[46258]: GC: forcing GC OFF because OBJC_DISABLE_GC is set
2008-12-07 20:03:03.415 otest[46258:813] Usage: otest [-SenTest Self | All | None | <TestCaseClassName/testMethodName>] <path of unit to be tested>
2008-12-07 20:03:03.421 otest[46258:813] launch path not accessible

I've tried -SenTest All, -SenTest None, and a variety of things for Section Tests.octest including prefixing it with ${BUILT_PRODUCTS_DIR} and without, and even removing it altogether. All with the same result. I'm pretty sure that the problem is a dumb one but I can't see it.

Once again -- thanks to all who have responded and if anyone has any thoughts I'd be really appreciative.

Thanks very much.

Thaddeus O. Cooper
([EMAIL PROTECTED])



On Dec 7, 2008, at 4:48 PM, Rob Keniger wrote:


On 08/12/2008, at 8:25 AM, Thaddeus Cooper wrote:
The framework builds correctly -- no warnings or errors, but the test cases do not get built automatically. I then switch my active target to my test bundle (creatively named Tests), and do a build and get the following error dump (note I've highlighted the line I believe to be the major error):


2008-12-07 14:15:35.042 otest[42098:80f] The executable for the test bundle at /Users/cooper/src/Sections/build/Debug/Tests.octest could not be found.


It looks like you have not configured the BUNDLE_LOADER configuration directive in your Tests target's settings to point to your executable.

You need to make sure that the bundle loader is set to $ {BUILT_PRODUCTS_DIR}/YourAppName.app/Contents/MacOS/YourAppName for the test target to be able to launch your app and run the tests.

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list ([email protected])

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/tcooper%40nomoreboxes.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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]

Reply via email to