• 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: Judith Maria Nefertari Dohmann <email@hidden>
  • Date: Mon, 13 Oct 2003 21:34:57 +0200

Am Montag, 13.10.03 um 20:42 Uhr schrieb Chris Hanson:

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.
Thank you very much, it works!
I tried nearly the same (from the article at stepwise), and there was this argument without
the - in front of SenTest, so it did not work.

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.

Also thanks for this hint, I might try it for another project.

Judith
_______________________________________________
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.

References: 
 >Re: OCUnit: Debugging a test (and the tested class)? (From: Chris Hanson <email@hidden>)

  • Prev by Date: problem to get network service with morescf
  • Next by Date: NSTableView column resizing during window resizing
  • Previous by thread: Re: OCUnit: Debugging a test (and the tested class)?
  • Next by thread: Fastest replace method
  • Index(es):
    • Date
    • Thread