I found the following references helpful in my research on Unit Testing and UI Automation for iOS applications. There are a lot of tools to use to automate iOS testing and I’m very sure that I didn’t cover them all in this list. A good number of the items below came also from Sam Snyder’s lists at the bottom of this post.
Testing in General
– Unit Testing, component level testing and UI testing, what to use and when by Raul Perez
Unit Testing
– Unit Testing – Best Practices & Techniques
– Writing Great Unit Tests: Best and Worst Practices « Steve Sanderson’s blog
– Unit Testing Best Practices by Bob McCune
– Cocoa with Love: Quality control in application development without unit testing
Remarks: Overview of different types of testing and why unit testing is difficult for application development
– Unit Testing is teh suck, Urr. by Wil Shipley + Unit Testing. by bbum
– How to Write Your Own Automated Testing Framework by Gus Mueller
Unit Testing Tools
– Unit Testing Applications from Apple Documentation
Remarks: Contains how to set up unit testing in Xcode 3.
– iPhone Unit Testing Explained – Part 1 by Paul Solt
Remarks: Very good comparison of OCUnit, GHUnit and GTM. This post was written before Xcode 4 when OCUnit was not yet integrated to Xcode 4.
– Unit Testing in Xcode 4 – use OCUnit and SenTest instead of GHUnit
Remarks: A very good comparison of OCUnit and GHUnit. This post was written after Xcode 4 release. OCUnit is already integrated to Xcode 4.
– iPhone Unit Testing Toolkit
Remarks: Overview of GTM, Hamcrest and OCMock combination of tools for unit testing. Contains sample code on OCMock.
– GHUnit Setup by Scott
– Google Toolbox for Mac: iPhone Unit Testing
– Test Driving Your Code with OCUnit – Apple Documentation
Remarks: Has a section on the benefits of Unit Test and how to setup OCUnit in Xcode 3. When you’re using Xcode 4, you’re likely to skip some Xcode3-specific instructions.
– Cocoa with Love: A sample iPhone application with complete unit tests
Remarks: Differentiates Logic Tests and Application Tests for OCUnit and the debugging setup for Unit Tests.
– iPhone SDK: Testing UIApplicationDelegate with OCMock by Ivan Moscoso
Remarks: Sample Unit Testing of a view controller. Sample use of OCMock also.
– Testing iPhone View Controllers
Remarks: Sample Unit Testing of a view controller. Sample use of OCMock also.
– Testing Cocoa Controllers with OCMock by Erik Dornenburg
– TDD Best Practices: Unit Testing in iOS with GHUnit (Part 1)
– Unit Testing Cocoa user interfaces: Target-Action by Chris Hanson
– Making Fun of Things with OCMock by Alex Vollmer
– OCMock by Mulle Kybernetic
– OCMock and the iPhone by Colin Barrett
– Debugging Unit Tests for iPhone/iPad by Scott Densmore
UI Automation
– How to use UIAutomation to create iPhone UI Tests – O’Reilly Answers
– UI Automation on the iPhone
Remarks: Random information on UI Automation w/c includes discussion of what are missing in UI Automation
– iPhone UI Automation tests: a decent start by Adam Milligan
Remarks: Lists down “significant problems” with UI Automation
– Automating iOS User Interface Testing with FoneMonkey by Stu Stern
Remarks: FoneMonkey is a very good recording/playback tool. It generates javascript code that can be ran on Instruments. It also generates Objective-C code that can be ran on OCTest.
These posts by Sam Snyder list down sites on Testing for iOS apps:
– Unit Testing for iPhone and iPad Apps by Sam Snyder
– Software QA and Testing for iPhone and iPad Apps by Sam Snyder
Pingback: Unit Testing on iOS
You are right Jogjit, these references are very helpful in research for Testing and UI Automation for iOS applications. There are a lot of tools to use to automate iOS testing. These tools are fantastic.