살군의 보조기억 장치

Another memory device…

xcode unit test setup (Logic Test case)

with one comment

From iOS Developer Library, there is two test methods.

  1. Logic test: Unit or Class based test. Mostly, purpose is checking the a single functionality.
  2. Application test: Test whole application.

Assumption: Include Unit Tests checkbox is checked when you create a new project

Setting up Logic Unit Test on Xcode 4.1

To set up a unit-test target to perform logic tests:

 

 

 

 

 

  1. In the project editor, select the unit-test target you want to set up, and display the Build Settings pane.If you don’t have a unit-test target in your project, add one and name it <app_name>LogicTests (where <app_name> is the name of your application), as described in“Adding a unit-test target to Your Project.”
  2. In the Build Settings pane’s scope bar, click All.
  3. In the search field, enter ios deployment target, and press Return.
  4. If the iOS Deployment Target build setting appears in bold, select it, and press Delete.
  5. In the search field, enter bundle loader, and press Return.
  6. If the Bundle Loader build setting appears in bold, select it, and press Delete.
  7. In the search field, enter test host, and press Return.
  8. If the Test Host build setting appears in bold, select it, and press Delete.
Advertisements

Written by gomiski

2011/10/12 at 4:08 am

Posted in Uncategorized

One Response

Subscribe to comments with RSS.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: