iphone - SenTesting stop test after first STAssert fails -
is there way stop execution of ios unit test once first stassert fails?
for example if have multiple stasserts:
stasserttrue([myobject succeeded], @"failed"); stassertnotnil(foo,@"bar"); i love if xcode stopped executing test after first 1 fails. way this?
if have exception breakpoint set exceptions, xcode throw debugger on first failed test. if you're running tests manually within xcode might acceptable.
to setup exception breakpoint within xcode 4+
- view > navigators > show breakpoint navigator
- click + button @ bottom left of breakpoint navigator window, choose "add exception breakpoint"
- click "done" in popover appears.
xcode break debugger on exceptions encountered @ application runtime.
Comments
Post a Comment