You are previewing Test-Driven iOS Development.

Test-Driven iOS Development

Cover of Test-Driven iOS Development by Graham Lee Published by Addison-Wesley Professional
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). ...

The best content for your career. Discover unlimited learning on demand for around $1/day.