Top positive review
One person found this helpful
Finally, a book about TDD on iOS and OS X
on 13 June 2012
While I wouldn't call myself a long-time expert, I do know my way around iOS and OS X development, and have been working on my own apps for a couple of years. I've been aware of Test Driven Development (TDD) for a while, have read a number of books on the subject, and can see the benefits of approaching a project in this way. But taking that information and putting it into practice on the Apple toolkit has always proved an issue. The Apple platforms, and Objective-C in particular, are just different enough to the usual TDD environment--Ruby--to make all the other books and tutorials opaque enough that you are never sure if you are doing it `right'.
Which is where this book comes in. It doesn't rely on you knowing anything about the subject, and gently guides you through the concepts of TDD as well as detailed code-driven practice on how to do it, using the built-in Xcode facilities.
You get an introduction on how to test all the `layers' of your app, through the code Model, View and Controller, and how you approach `mocking' objects to make testing quick, easy and repeatable. That's not all it contains, of course; suffice to say, if you want to do TDD when writing code for Apple devices, you need this book.
In closing it also touches on third-party alternatives to the built-in option, but if you wanted more details on those you'd need to look elsewhere. This isn't a fault with the book, but just not what it sets out to do, which is provide a great introduction to TDD for Apple developers, or for those that already may know about and use it on other platforms, how to leverage that knowledge on iOS and Apple OS X.
I've been waiting for this book for a long, long time, and it doesn't disappoint.