{"id":44,"date":"2005-06-20T08:32:13","date_gmt":"2005-06-20T15:32:13","guid":{"rendered":"http:\/\/www.corbinstreehouse.com\/blog\/?p=44"},"modified":"2005-10-04T08:33:00","modified_gmt":"2005-10-04T15:33:00","slug":"debugging-octest-bundles","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2005\/06\/debugging-octest-bundles\/","title":{"rendered":"Debugging OCTest bundles"},"content":{"rendered":"<p id=\"top\" \/>\n<h2>Another old article: June 20, 2005<\/h2>\n<h3>Debugging OCTest bundles<\/h3>\n<p>To debug OCTest bundles:<\/p>\n<p>1. Add a new executable to your Xcode project pointing it to \u00e2\u20ac\u0153otest\u00e2\u20ac\u009d at \/Developer\/Tools\/otest<br \/>\n2. Double click on the executable, and add two run params (requires Xcode 2.1):<br \/>\n\u00c2\u00a0 a. -SenTest Self<br \/>\n\u00c2\u00a0 b.\u00c2\u00a0$(BUILT_PRODUCTS_DIR)\/YourBundleName.octest<\/p>\n<p>This makes it REALLY easy to debug OCUnit tests. You can debug an individual test suite with:<\/p>\n<p>\u00c2\u00a0 -SenTest UnitTestClassName<\/p>\n<p>or an individual test case with:<\/p>\n<p>\u00c2\u00a0 -SenTest UnitTestClassName\/testMethodName<\/p>\n<p>For instance, here is what one of my arguments looks like in Xcode 2.1:<\/p>\n<p>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/UnitTestingOptionsShot.png\" height=\"198\" width=\"330\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Unittestingoptionsshot\" \/><\/p>\n<p>\nI can easily test\/debug all tests, or an individual test by turning on\/off arguments. Note that it doesn&#8217;t have the \u00e2\u20ac\u0153$(BUILT_PRODUCTS_DIR)\/YourBundleName.octest\u00e2\u20ac\u009d option because this is for an executable, not a bundle.<\/p>\n<div id=\"a000013more\">\n<div id=\"more\">\n<\/div>\n<\/div>\n<p class=\"posted\">Posted by corbin at June 20, 2005 03:00 PM<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 \u00e2\u20ac\u0153otest\u00e2\u20ac\u009d at \/Developer\/Tools\/otest 2. Double click on the executable, and&#8230; <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2005\/06\/debugging-octest-bundles\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,6,1],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-apple","category-cocoa","category-general"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8zn47-I","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":0,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}