This document discusses test-driven development (TDD) and its application for iOS development. It provides an overview of TDD processes and techniques, describes how to implement TDD for an iOS client app for the OSXDev API, and reviews the OCUnit testing framework and alternatives for unit testing iOS apps with TDD.
4. Test-driven Development
- What is it?
- Software Development Process
- repetitive short development cycle
add
test
run
tests
write
code
run
tests
refactor
code
5. - Software Development Process
- Waterfall
Test-driven Development
Requirements
Specification
Development
Test
Deployment
9. Test-driven Development
- Techniques for TDD
- Test First
- Red, Green, Refactor
- Designing a Test-Driven App
- Refactoring
- YAGNI(You Aren’t Gonna Need It)
- Testing Before, During, and After Coding
15. TDD for iOS
- Alternative Unit Testing Tools
- Google Toolkit for Mac (GTM)s
- GHUnit
- CATCH
- OCMock
- http://ocmock.org
- http://alexvoller.com/posts/2010/06/28/making-fun-of-things-with-
ocmock