Episode #338

Creating Higher Level Assertions

Series: Testing iOS Applications

10 minutes
Published on May 3, 2018

This video is only available to subscribers. Get access to this video and 584 others.

XCTAssertion functions are a foundational part of your test suite but sometimes can be too low-level. You want to know exactly why a test failed, not that "2 was not less than 1." By extracting helper methods to do assertions for you, you can give groups of assertions meaning, and make it easier to reason about your tests and why they might be failing.

This episode uses Swift 4.1, Xcode 9.3.