Cover page by Graham Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

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). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required