Bonus Content
Chapter Exercises Solutions
- Chapter 5, Changing Tests with Fixtures
- Chapter 7: Testing Dynamic SwiftUI Views
- Chapter 8: Testing Code Based on Indirect Inputs
- Chapter 9: Testing JSON Decoding
- Chapter 10: Testing Network Code – Part 1: TDD base URL with Stub
- Chapter 10: Testing Network Code – Part 2: TDD base URL with Spy
- Chapter 10: Testing Network Code – Part 3: Keep multiple endpoints tidy
- Chapter 12: Testing Side Effects
Improvements and alternative implementations
Swift Packages from the book
- swift-collection-if-in-bounds – Adds a subscript operator to
Array
and otherCollection
types to returnOptional.none
instead of crashing when the given index is out of bounds. - RemoteData – Fine-grained
enum
to describe the state of networking operations. - MinimalNetworking – Network abstraction layer based on the work from the book.