Brian Coyner is a software developer passionate about software simplicity. For nearly fifteen years ...View Details
Writing understandable, maintainable unit tests is never easy. This is especially true for OS X and iOS development, where the Xcode tool support is still fairly primitive. OCUnit is a standard xUnit framework integrated into Apple's Xcode environment. This session is designed to help developers learn various techniques for writing and maintaining quality OCUnit tests. Topics include writing "parameterized" test cases (a.k.a. data-driven), testing concurrent code using "latches" (coordinate a deterministic dance between the test thread and background threads), writing mini-test harnesses based on "parameterized" test cases, and various other OCUnit and Xcode tips and tricks.