GQAdonis
Cool as the other side of the pillow…
-
Notes on How to Unit Test iPhone Applications
Posted on July 22nd, 2009 No commentsUnit testing is an essential part of getting development done right. While unit testing applications for Java, .NET, Ruby, JavaScript and other languages is a relatively simple task, unit testing iPhone application is a bit more complicated, since there is no support in XCode provided. The following two articles provide the details for how to set up unit testing for iPhone applications:
- From the OCUnit guys. This article is provided by the authors of OCUnit, the unit testing framework for Objective-C included with XCode for project types other than iPhone.
- Unit Testing and Mocking for iPhone Apps. This article builds on the original, providing details on how to include OCMock to provide mocking support. Mitch Hashimoto goes a bit deeper by providing details on how to get it all working in another article on unit testing and mocking.
Stay tuned as I write future articles on how to build reusable iPhone libraries and frameworks that include unit testing as a core concept to ensure correctness of code and function.
Leave a reply



