Is there a way to stop execution of an iOS unit test once the first STAssert fails?
For example if I have multiple STAsserts:
STAssertTrue([myobject succeeded], @"failed");
STAssertNotNil(foo,@"bar");
I would love it if Xcode simply stopped executing the test after the first one fails. Any way to do this?
If you have an Exception Breakpoint set for all exceptions, Xcode will throw to the debugger on the first failed test. If you're running tests manually within Xcode this might be acceptable.
To setup an exception breakpoint within Xcode 4+
Xcode will break to the debugger on any exceptions encountered at application runtime.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With