• 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
debugging OCUnit tests with XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

debugging OCUnit tests with XCode


  • Subject: debugging OCUnit tests with XCode
  • From: Michael Davidson <email@hidden>
  • Date: Sun, 6 Jun 2004 17:06:41 -0400

Hello all -

I searched the mamasam archives and the apple.com archives, and didn't
find what I was looking for.

How do you debug unit tests using XCode?

I found instructions for ProjectBuilder, but they don't seem to work.

I have two targets in XCode and one executable. The "Testing" target
contains my tests and my application code, and my "MyApp" target contains
only the application code. I see tests failing when I build the "Testing"
target, but I don't know how to get the framework to run the tests in the
debugger.

The only executable I have is "MyApp". I have tried setting the command
line parameter to -SenTest Self, but when I run it no tests get run. It
does give a report:

Passed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.022) seconds

I have tried adding the testing code to the "MyApp" target so that it gets
built into the executable, but I get the same result. I'm not sure if
doing this is necessary or not.

If anyone has gotten debugging unit tests in XCode working, I would
appreciate hearing how it is done!

Thanks,
Michael
_______________________________________________
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.


  • Prev by Date: Re: NSDocument application: How do I maintain a single window?
  • Next by Date: Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
  • Previous by thread: NSScrollView subclassing oddness
  • Next by thread: Determining the opaque region of an NSImage
  • Index(es):
    • Date
    • Thread