• 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: breakpoints ignored while running unit tests! Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: breakpoints ignored while running unit tests! Why?


  • Subject: RE: breakpoints ignored while running unit tests! Why?
  • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Tue, 9 Sep 2008 16:05:36 -0400
  • Thread-topic: breakpoints ignored while running unit tests! Why?

I apologize for taking so long to reply; I broke the build, and had to
spend some time fixing it.

1) yes, it is FOCU_S tester.app.

2) I do not expect any user actions to hit the breakpoint; that is, the
unit tests are run when the program is built, and I put a breakpoint at
the start of one of the test methods.  My goal is to step through the
unit test to see what the values are before everything goes south.  My
guess from your question is that this isn't possible, that I have to
have some kind of user interface to tickle the test case; am I correct?
Right now, my test application has no user interface (just the generic
window that the Cocoa application template puts up), and all I want to
do is step through the test case code, assuming that the unit testing
framework will let me.

Thanks,
Cem Karan

-----Original Message-----
From: Chris Hanson [mailto:email@hidden]
Sent: Monday, September 08, 2008 9:58 AM
To: Karan, Cem (Civ, ARL/CISD)
Cc: xcoders
Subject: Re: breakpoints ignored while running unit tests! Why?

On Sep 8, 2008, at 6:32 AM, Karan, Cem (Civ, ARL/CISD) wrote:

> Actually, I tried to follow your blog post as completely as I could.
> The only thing I can think of is that my executable has a space
> character (as does the path).

That shouldn't be a problem.

(1) What is your executable itself?  I expect it's FOCU_S tester.app,
not Unit Tester.octest.

(2) What user actions are you expecting to hit a breakpoint?  You should
Build (not "Build and Run", "Build and Debug", or anything like that),
which will fail due to the failing unit test, *and then* Debug (not
"Build and Debug") to debug the executable you set up and hit the
breakpoint.

   -- Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: breakpoints ignored while running unit tests! Why?
      • From: Chris Hanson <email@hidden>
References: 
 >breakpoints ignored while running unit tests! Why? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: breakpoints ignored while running unit tests! Why? (From: Philippe Casgrain <email@hidden>)
 >RE: breakpoints ignored while running unit tests! Why? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: breakpoints ignored while running unit tests! Why? (From: Chris Hanson <email@hidden>)
 >RE: breakpoints ignored while running unit tests! Why? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: breakpoints ignored while running unit tests! Why? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: How do you debug your Cocoa unit tests?
  • Next by Date: Porting projects from Windows
  • Previous by thread: Re: breakpoints ignored while running unit tests! Why?
  • Next by thread: Re: breakpoints ignored while running unit tests! Why?
  • Index(es):
    • Date
    • Thread