O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

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

29 Unit Testing

As you implement a new feature in your application, you will want to ensure that the feature works the way that you intend it to. The fastest and most reliable way to verify that your code works is to write automated tests and run them against your code often. As you are building a new feature, you can repeatedly run your automated tests to guarantee that the code that you have written results in the behavior that you want.

Unit testing is a particular kind of automated testing in which the individual components, the units, of your application are tested. These units are the building blocks of your application. Typically, they are your application’s classes.

The advantage of testing units is that you are able ...

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