O'Reilly logo

Mastering Xcode 4: Develop and Design by Joshua Nozzi

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

18. Unit Testing

Xcode has supported unit testing since version 2, but the developer community has often bemoaned the limits of that support. In Xcode 4, testing has become a first-class citizen, satisfying many of the previous complaints. In Chapter 14, you learned about the various Build actions, of which Test is one. When you call for a test (assuming you’ve set up unit testing), a testing-specific target is built and run, which in turn runs a series of tests against your code. In this chapter, you’ll explore Xcode’s unit testing features in greater detail.

What is Unit Testing?

Most sources define unit testing as a method of testing the functionality of individual units of code to make certain they work under any possible condition. Many ...

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