Let's TDD
summary
Builds a searchable demo app by test-driving a networking service and the view layer, using Alamofire for requests and XCTest expectations for async checks. Replaces singleton calls with a Alamofire session manager protocol, injects a stub and spy objects to verify URI, HTTP method and parameters, and fixes a loading-indicator bug discovered by tests. Demonstrates TDD cycle: write failing test, implement minimal code, refactor; reports team coverage climbs from ~30% to 70–80% on new code.
AI-written summary · about
