Reputation: 18922
If I write a helper method for test case:
- (void)testCallsHelper
{
[self helper]; // Can I get Xcode to highlight the failure here?
}
- (void)helper
{
STFail(@"Fail"); // Xcode highlights failure here
}
This would be handy because it's quicker to use Xcode highlighting to jump to where an error is occurring and its also handy to put repeated code into helper method.
Upvotes: 1
Views: 101