In my last post I talked about how to setup for Code Coverage and made a reference to unit testing. In this article I wanted to share my experience with setting up to run unit testing.
A great place to start is the Apple document Xcode Unit Testing Guide.
Setup target and initial test suite
Choose File > New > Target …
In the iOS section, select Other, then select the Cocoa Touch Unit Testing Bundle template.
Since my app is called ContactsOnline, I’ll name my product (new target) ContactsOnlineBasicUnitTests.
This creates a test suite by the same name ContactsOnlineBasicUnitTests.m, within a group called ContactsOnlineBasicUnitTests.
Unit-test targets define one or more test suites.