Information Technology Reference
In-Depth Information
Although these features are included in the project, testing isn't enabled. To enable it, select the Tests target and
view the Build Settings. Scroll down to the Unit Testing switches, and make sure Test After Build is set to Yes, as
shown in Figure 17.3.
CAUTION
Make sure you enable testing for the test target, not for the main build. Optionally, scroll up to the Linking
switches. You'll see -framework SenTestingKit added to the Other Linker Flags field. In earlier versions of
Xcode, you had to set this switch manually, but this is no longer necessary in Xcode 4.
FIGURE 17.3
Enabling testing. Testing is disabled if this switch is set to No, even during test builds.
Search WWH ::




Custom Search