Test Driven Development (TDD) by Controlling Dependencies
summary
Argues that using SOLID and a Clean/hexagonal architecture makes real TDD practical on iOS by isolating view, presenter, interactor and repository layers; shows unit tests that avoid network and Core Data by using in-memory Core Data store, hand-written mocks (overriding UILabel text) instead of heavy mocking frameworks, and tests protocol extensions for segues; notes Xcode UI tests are integration tests, not unit tests; demonstrates a view controller with 92 tests and reports full coverage; uses protocol extensions in Swift 2.
AI-written summary · about
chapters (23)
- 0:00Introduction
- 0:54Testing for Small Things
- 1:28Testing for Professionals
- 3:56TestDriven Development
- 6:13Test Your Code
- 7:09Test Only Public Methods
- 8:54Assertion
- 9:47TDD Dance
- 9:59Writing Tests
- 11:11Process of TDD
- 14:14Cons of TDD
- 18:27RealLife Examples
- 18:40How many of you do TDD
- 19:30UI
- 20:22Persistence
- 21:19Protocol Extensions
- 23:29TDD Swift
- 23:49Integration Testing
- 26:55Demo
- 31:40Architecture
- 35:47Testing
- 42:23Summary
- 46:10Questions








