Contents

XCTSkipIf

Skips remaining tests in a test method if the specified condition is met.

Declaration

#define XCTSkipIf(expression, ...)

Discussion

Call this macro to skip any remaining code and assertions in the test method when expression evaluates to true, and mark the test method as skipped. If a test failure occurs in the test method before the skip, the test runner marks the test method as failed.

See Also

Methods for Skipping Tests