Every day, from concept to delivery, we bring leading edge thinking and experience to transform businesses with inspiring solutions.

More about Unboxed Consulting… We bring leading edge thinking and volumes of experience to transform businesses with inspiring solutions. More about Unboxed Consulting…

Unboxed Blog

Back to Blog Index
Rob Holland

Cucumber + iPhone = iCuke

Posted by: Rob Holland

31 May 2010

Ever wish you could write Cucumber stories for iPhone applications the way you do for web apps? Well now you can, thanks to Unboxed's iCuke.

iCuke allows you to write integration tests for your iPhone applications without changing your existing code (as long as your application makes proper use of the accessibility APIs).

Usage is pretty much as you'd expect, install the gem and load the iCuke step definitions in a cucumber support file:

Then you can write scenarios like:

iCuke builds on work by Matt Gallagher and Ian Dees to make integration testing iPhone applications as painless as possible. Applescript is used to drive XCode to launch your application under the iPhone Simulator. An embedded webserver is used to determine what is showing on the iPhone's screen and to emulate taps/swipes etc.

For an application which adheres to Apple's accessibility guidelines no changes to the application's code are required, and there is no need to make any changes to configuration in XCode.

Unboxed Consulting enquiries@unboxedconsulting.com
8 Elder Street
London, Greater London, E1 6BT United Kingdom
N 51° 31 18.2111 W -0° 4 35.9483
+44 20 7183 4250