How do you debug a unit test in Xcode 3?
Posted
by
Dov
on Stack Overflow
See other posts from Stack Overflow
or by Dov
Published on 2011-01-09T01:40:54Z
Indexed on
2011/01/09
1:53 UTC
Read the original article
Hit count: 540
I followed Apple's instructions to set up Unit Testing in my project. I followed the directions for making them dependent, so the tests run with every build of my main project. This works, and when my tests pass the application runs; when they don't, I get build errors on the lines of the unit tests that failed.
I would like, however, to be able to step through my application code when the tests are failing, but can't get Xcode (3.2.5) configured properly. The project is a Mac project, not iOS.
I tried the instructions here and here, but execution never stopped at the breakpoints I set, neither in the the unit test code or in my application code. After following the first set of instructions, the breakpoints I set turned yellow with blue outlines, and I don't know what that meant, either. What do I need to do to step through my tests?
© Stack Overflow or respective owner