Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 461 Bytes

File metadata and controls

30 lines (22 loc) · 461 Bytes

XCTSkip Your Tests

Add runtime checks to enforce test requirements

Introduced in Xcode 11.4

Results:

  • Pass
  • Fail
  • Skip

Ways to Skip

  • throw XCTSkip
  • XCTSkipIf
  • XCTSkipUnless
guard #avilable(iOS 13.4, *) else {
    throw XCTSip("description")
}

try XCTSkipIf(UIDevice.current.userInterfaceIdiom != .pad, "message")

Skip is indicated:

  • The test (at the point that triggered skip)
  • Test Navigator
    • filter button
  • Test Report