This document discusses testing in iOS applications. It begins by introducing the author and their background. It then discusses reasons for testing like reliability, regression testing, and confidence during refactoring. Potential issues with testing like heavy UI dependence and non-testable code are addressed. The document recommends separating UI and service code for better testability. It demonstrates the Kiwi and OCMock testing frameworks and provides examples of testing classes, dependencies, and private/static methods in an isolated way without heavy mocking. It emphasizes best practices like writing tests first and using version control properly.
Related topics: