My favorites | Sign in
Project Logo
                
Search
for
Updated Jul 02, 2009 by ZaBlanc
Labels: Phase-Implementation, Phase-Deploy
SetingUpWiteBox  
How to Set Up Wite Box in Your iPhone Project

Introduction

Wite Box is designed to be a full-fledged iPhone application and will sit alongside the application (or other target) you have in your own project. While developing, you will simply change your Active Target to switch between development and unit testing.

Setup

NOTE: In the following instructions, WiteBox refers to the WiteBox project you've downloaded to your machine and YourProject is whatever XCode project you are maintaining that you want to set up for unit testing.

  1. Using Finder, copy the directory WiteBox/WiteBox into YourProject.
  2. Open YourProject in XCode.
  3. In the menubar, select Project -> New Target...
  4. Select Application as the template and hit Next.
  5. Choose a target name. WiteBox or UnitTests are good options. Hit Finish.
  6. Change the Active Target of your project to your newly created target.
  7. Using Finder, click and drag the YourProject/WiteBox folder you copied in step 1 anywhere into your project. I prefer locating it under Other Sources to keep it separate from my own code.
  8. When the dialog appears, uncheck the Copy items into destination group's folder box and make sure the Add to Targets list only has your new target selected. Hit Add.
  9. Verify everything is correct by running the new target.

You're done! See the Creating Unit Tests guide for information on how to start adding unit tests to your app!


Sign in to add a comment
Hosted by Google Code