Opening the iTunes Store.If iTunes doesn't open, click the iTunes application icon in your Dock or on your Windows desktop.Progress Indicator
Opening the iBooks Store.If iBooks doesn't open, click the iBooks app in your Dock.Progress Indicator

iTunes is the world's easiest way to organize and add to your digital media collection.

We are unable to find iTunes on your computer. To download from the iTunes Store, get iTunes now.

Already have iTunes? Click I Have iTunes to open it now.

I Have iTunes Free Download

Test-Driven iOS Development

This book can be downloaded and read in iBooks on your Mac or iOS device.


This is the eBook version of the printed book.

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 environmentsMastering the principles of TDD, and applying them in areas from app design to refactoringWriting usable, readable, and repeatable iOS unit testsUsing OCUnit to set up your Xcode project for TDDUsing domain analysis to identify the classes and interactions your app needs, and designing it accordinglyConsidering third-party tools for iOS unit testingBuilding networking code in a test-driven mannerAutomating testing of view controller code that interacts with usersDesigning to interfaces, not implementationsTesting concurrent code that typically runs in the backgroundApplying TDD to existing appsPreparing 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.

Customer Reviews

Finally, success. Unit tests achieved.

I imagine that every platform has its unique needs as iOS development does. Finding straightforward and practical instruction on writing testing and using tests for my Cocoa software has eluded me until now with this excellent book.

Seriously, this book has both convinced me of the usefulness in my actual work of unit testing, and helped me find ways to implement tests that -actually- make sense to me. I have especially appreciated the thoughtful scope of the writing; its broad perspective of software design and testing; its narrow focus on real world Xcode and iOS needs.

Changed my life, and is changing my customers lives too.

Much appreciated.

Well worth every penny

I have been trying to figure put tdd for iPhone for a while now. This book answered everything that has been keeping me from using tdd on my projects. Very excited to get to work now!

Test-Driven iOS Development
View in iTunes
  • $27.99
  • Available on iPhone, iPad, iPod touch, and Mac.
  • Category: Programming
  • Published: Apr 12, 2012
  • Publisher: Pearson Education
  • Seller: Pearson Education Inc.
  • Print Length: 242 Pages
  • Language: English
  • Requirements: To view this book, you must have an iOS device with iBooks 1.3.1 or later and iOS 4.3.3 or later, or a Mac with iBooks 1.0 or later and OS X 10.9 or later.

Customer Ratings

More by Graham Lee