XCTAssertTrue doesn't stop routine
unit-testing, xcode, xcode5
Solution
you can change this behavior of `XCTAssert<XX>`. In setup method change value `self.continueAfterFailure` to NO.
IMO stopping the test after test assertion failure is better behavior (prevents crashes what lead to not running other important tests). If test needs continuation after a failure this means that test case is simply to long an should be split.
Problem
Xcode doesn't terminate a test routine at failed assertions. Is this correct? I fail to understand the reason behind this and I'd like it to behave like `assert` and have it terminate the program. With the following test, it will print "still running". Is this intended? ``` - (void)testTest { XCTAssertTrue(false, @"boo"); NSLog(@"still running"); } ``` I don't see how this would be useful, because often subsequent code would crash when pre-conditions aren't met: ``` - (void)testTwoVectors { XCTAssertTrue(vec1.size() == vec2.size(), @"vector size mismatch"); for (int i=0; i<vec1.size(); i++) { XCTAssertTrue(vec1[i] == vec2[i]); } } ```