Adding Test Classes

Expand the scope of your unit testing by adding test classes to a project.

To add test classes
  1. In the lower-left corner of the test navigator, click the Add button.

  2. In the pop-up menu, choose New Test Class.

  3. Enter a name for the class, choose the superclass, and click Next.

  4. Select a destination, group, and target, and click Create.


    A new bundle and class are added to the test navigator, including stub implementations for the setUp, tearDown, and testExample methods.

  5. Complete the stub implementations, and add other code as necessary.