Mac OS X Reference Library Apple Developer
Search

Unit Test Guidelines

Xcode’s integrated support for unit testing makes it possible for you to build test suites to support your development efforts in any way you want. You can use it to detect potential regressions in your code or validate the behavior of your application. These capabilities can add tremendous value to your projects. In particular, they can improve the stability of your code greatly by ensuring individual pieces of code behave in expected ways.

Of course, the amount of stability you receive from unit testing is highly dependent on the quality of the test cases you write. The following are some guidelines to think about when writing test cases:




Last updated: 2009-10-19

Did this document help you? Yes It's good, but... Not helpful...