Debugging OCTest bundles

Apple, Cocoa, General

Another old article: June 20, 2005

Debugging OCTest bundles

To debug OCTest bundles:

1. Add a new executable to your Xcode project pointing it to “otest” at /Developer/Tools/otest
2. Double click on the executable, and add two run params (requires Xcode 2.1):
  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

For instance, here is what one of my arguments looks like in Xcode 2.1:

Unittestingoptionsshot

I can easily test/debug all tests, or an individual test by turning on/off arguments. Note that it doesn’t have the “$(BUILT_PRODUCTS_DIR)/YourBundleName.octest” option because this is for an executable, not a bundle.

Posted by corbin at June 20, 2005 03:00 PM

Tags:


Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Subscribe to new posts:

You'll get an email whenever a I publish a new post to my blog and nothing more. -- Corbin

As an Amazon Associate I earn from qualifying purchases.

(c) 2008-2024 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

65 queries. 1.226 seconds.

Log in