I am writing a test method in which I want the SUT to throw an exception when under certain conditions. The code is as follows:
- (void) testCantStartTwice
{
XCTAssertThrows([self.sut start], @"");
}
Now everything is fine, and the test passes. However, I have Xcode setting an exception point for all ObjC exceptions, which is very useful when testing the application in the debugger. As you are now, now that I am running my test suite with โU, now it stops at this test and looks if it fails, even if it says โTest succeedโ.
Any way to make a breakpoint not stop on this test?
Thanks and all the best
source
share