© Gio Lodi 2021
G. LodiTest-Driven Development in Swifthttps://doi.org/10.1007/978-1-4842-7002-8_4

4. Test-Driven Development in the Real World

Gio Lodi1  
(1)
Mount Martha, VIC, Australia
 

How do you go from using tests to drive the implementation of small, self-contained problems like the ones we’ve seen in the previous chapters to building a full application?

By cheating. Instead of seeing the application as a whole problem, you can break it apart into smaller and smaller ones. Eventually, you’ll reach a scale where each problem is small and self-contained.

In this chapter, we’ll start building the real-world application that we’ll use as our playground throughout the book. We’ll apply the Partition Problem and Solve Sequentially technique to identify ...

Get Test-Driven Development in Swift: Compile Better Code with XCTest and TDD now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.