XCTAssertThrows stops at a breakpoint

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

+3
source share
2 answers

, . wwdc 2013 . , :

  • , , .
  • , , , .

, , , , . , .

+1

, 2 . , .

0

All Articles