I am looking for the equivalent of STAssertTrue, STAssertFail ...
but they can stop the test when it fails (for example, in Java).
Do they have something similar in objc?
You can use the raiseAfterFailure method of the raiseAfterFailure method . For example, in the following test method, βEPIC FAILβ will never happen.
raiseAfterFailure
- (void)testFailing { [self raiseAfterFailure]; STFail(@"FAIL"); STFail(@"EPIC FAIL!"); }