O'Reilly logo

iPhone Applications Tune-Up by Loyal Moses

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

Preparing a project for logic unit testing

Implementing application and logic unit tests within Xcode is quite simple. To demonstrate the simplicity and power of the SenTestingKit framework, we will walk through the creation and usage of both application and logic unit test cases. The steps for creation and usage of both application and logic unit test cases are given as follows:Create a new unit test bundle target for our unit tests to reside:

  1. Select your project in the navigation panel and click the Add Target button.
  2. Select the Cocoa Touch Unit Testing Bundle template from the iOS Other category and click Next:
Preparing a project for logic unit testing
  1. Name the target LogicTests, as well ...

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