Re: NSLog doesn't work with OCUnit
Re: NSLog doesn't work with OCUnit
- Subject: Re: NSLog doesn't work with OCUnit
- From: Corbin Dunn <email@hidden>
- Date: Mon, 20 Jun 2005 14:57:52 -0700
You simply use "otest" as the host to run your application. Steps: 1. Add a new executable to your project -- select otest in /Developer/Tools/otest 2. Double click on the executable, and add two run params: a. -SenTest Self b. $(BUILT_PRODUCTS_DIR)/YourBundleName.octest
This makes it REALLY easy to debug OCUnit tests. You can debug an individual test suite with:
-SenTest UnitTestClassName
or an individual test case with:
-SenTest UnitTestClassName/testMethodName
--corbin
But then the new Xcode 2.1 test bundle won't be loaded into your app so no tests will run. Is there a recommended way of debugging with Xcode 2.1's test bundles?
The new bundles are nice because you don't have to link your app against the testing framework and none of the test code ends up in your deployed app.
|
_______________________________________________
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