• 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: OCUnit: Debugging a test (and the tested class)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OCUnit: Debugging a test (and the tested class)?


  • Subject: Re: OCUnit: Debugging a test (and the tested class)?
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 13 Oct 2003 13:42:25 -0500

On Monday, October 13, 2003, at 12:29 PM, Judith Maria Nefertari Dohmann wrote:
I would like to look into the objects which are generated for the test, but
setting a breakpoint in the test-class or the file of the tested class does not work.

Add "-SenTest Self" as a launch argument to your executable in Project Builder, and set a breakpoint at the beginning of the failing test.

Then build & debug. Your unit test will fail during build, then your application will be launched under the debugger and unit tests will be run again. You'll hit the breakpoint you set in your failing test, allowing you to step through it and see what's going wrong.

Another question: OCUnit had no Document-based template with it, am I right
in the assumption that I only have to add an NSDocument subclass to my
project or did I miss something?

You could do that. I typically don't use the OCUnit project templates; I add OCUnit to my project by hand, and use the default Apple Project Builder templates most of the time.

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: OCUnit: Debugging a test (and the tested class)?
      • From: Judith Maria Nefertari Dohmann <email@hidden>
References: 
 >OCUnit: Debugging a test (and the tested class)? (From: Judith Maria Nefertari Dohmann <email@hidden>)

  • Prev by Date: Re: how to warn users of wrong system
  • Next by Date: problem to get network service with morescf
  • Previous by thread: OCUnit: Debugging a test (and the tested class)?
  • Next by thread: Re: OCUnit: Debugging a test (and the tested class)?
  • Index(es):
    • Date
    • Thread