Book description
As iOS apps become increasingly complex and business-critical, iOS developers must ensure consistently superior code quality. This means adopting best practices for creating and testing iOS apps. Test-Driven Development (TDD) is one of the most powerful of these best practices. Test-Driven iOS Development is the first book 100% focused on helping you successfully implement TDD and unit testing in an iOS environment.
Long-time iOS/Mac developer Graham Lee helps you rapidly integrate TDD into your existing processes using Apple’s Xcode 4 and the OCUnit unit testing framework. He guides you through constructing an entire Objective-C iOS app in a test-driven manner, from initial specification to functional product. Lee also introduces powerful patterns for applying TDD in iOS development, and previews powerful automated testing capabilities that will soon arrive on the iOS platform. Coverage includes
Understanding the purpose, benefits, and costs of unit testing in iOS environments
Mastering the principles of TDD, and applying them in areas from app design to refactoring
Writing usable, readable, and repeatable iOS unit tests
Using OCUnit to set up your Xcode project for TDD
Using domain analysis to identify the classes and interactions your app needs, and designing it accordingly
Considering third-party tools for iOS unit testing
Building networking code in a test-driven manner
Automating testing of view controller code that interacts with users
Designing to interfaces, not implementations
Testing concurrent code that typically runs in the background
Applying TDD to existing apps
Preparing for Behavior Driven Development (BDD)
The only iOS-specific guide to TDD and unit
testing, Test-Driven iOS Development covers both
essential
concepts and practical implementation.
Table of contents
- Title Page
- Copyright Page
- Developer’s Library
- Dedication Page
- Contents at a Glance
- Table of Contents
- Preface
- Acknowledgments
- About the Author
- 1. About Software Testing and Unit Testing
- 2. Techniques for Test-Driven Development
- 3. How to Write a Unit Test
- 4. Tools for Testing
- 5. Test-Driven Development of an iOS App
- 6. The Data Model
- 7. Application Logic
- 8. Networking Code
- 9. View Controllers
- 10. Putting It All Together
- 11. Designing for Test-Driven Development
- 12. Applying Test-Driven Development to an Existing Project
- 13. Beyond Today’s Test-Driven Development
- Index
- Footnotes
Product information
- Title: Test-Driven iOS Development
- Author(s):
- Release date: April 2012
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780132764049
You might also like
book
Test-Driven iOS Development with Swift - Fourth Edition
Build robust applications using TDD with Swift 5.5 and become a TDD expert by writing tests …
book
iOS Development with Swift
iOS Development with Swift is a hands-on guide to creating apps for iPhone and iPad using …
book
Test-Driven iOS Development with Swift 4 - Third Edition
Use test-driven approach to develop highly-functional iOS apps with Swift 4 and Xcode 9 About This …
video
The Complete iOS 11 and Swift Developer Course - Build 20 Apps
Dreaming of developing an app? Maybe you’ve got a vision, some inspiration and you’re ready to …