4. Tools for Testing

Now that you’ve seen what test-driven development can do for you and have learned how to write test-first code, it’s time to look at the tools available. In this chapter, you’ll learn more about the OCUnit framework that is bundled with Apple’s developer tools, and about some alternatives and their advantages and disadvantages. You’ll also find out about a framework for creating mock objects and Continuous Integration tools that help you run your tests automatically.

OCUnit with Xcode

Now that you know how to design a unit test, it’s time to set up your Xcode project for test-driven development. In this section, you’ll learn how to use OCUnit, a framework developed by Sen:Te (hence the assertion macros using the ST prefix). ...

Get Test-Driven iOS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.