• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSLog doesn't work with OCUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSLog doesn't work with OCUnit
      • From: Frank Midgley <email@hidden>
References: 
 >NSLog doesn't work with OCUnit (From: Simon Strandgaard <email@hidden>)
 >Re: NSLog doesn't work with OCUnit (From: Simon Strandgaard <email@hidden>)
 >Re: NSLog doesn't work with OCUnit (From: Simon Strandgaard <email@hidden>)
 >Re: NSLog doesn't work with OCUnit (From: Corbin Dunn <email@hidden>)
 >Re: NSLog doesn't work with OCUnit (From: Finlay Dobbie <email@hidden>)
 >Re: NSLog doesn't work with OCUnit (From: Corbin Dunn <email@hidden>)
 >Re: NSLog doesn't work with OCUnit (From: Frank Midgley <email@hidden>)

  • Prev by Date: Re: core data/table column sorting question
  • Next by Date: Re: How to trap for the delete key in NSOutlineView?
  • Previous by thread: Re: NSLog doesn't work with OCUnit
  • Next by thread: Re: NSLog doesn't work with OCUnit
  • Index(es):
    • Date
    • Thread