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 ...
Get Mastering Xcode 4: Develop and Design 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.