I demonstrate how to set up unit tests along with a new UI Automation interface testing tool in a video for a test session in my iPhone development class on iTunes U. The video for the Unit Test session from the last semester class also understands this in detail.
My unit notes from last semester can be found here . I created a small sample application illustrating the use of unit tests, with the source code available for download here .
I also highly recommend Graham Lee's test- based development course for Cocoa on iDeveloper.tv. You have to pay for these videos, but they are worth it, for the quality of the material presented there. I gathered a lot of techniques, watching them.
source share