Tonight I decided to give iCuke a try but I couldn’t find any good getting started guides. iCuke is a BDD gem for cucumber that enables integration testing for the iPhone. I’m familiar with using cucumber with Rails so getting going wasn’t terribly difficult but thought the pre-reqs should be a little more clear.
Here are five simple steps for getting started:
Step 1: Setup directories
$ cd path/to/your/iphone/app
$ mkdir features
$ cd features
$ mkdir support step_definitions
Step 2: Create cucumber.yml with the following content:
default: -r support -r step_definitions .
Step 3: Create support/iphone.rb with the following content:
require 'icuke/cucumber'Step 4: Enable the iPhone Simulator Accessibility Inspector in System Preferences


One Response to “Getting Started With iCuke”
Rob Holland June 2, 2010
Thanks for writing this. From iCuke version 0.5.5 onward I’ve removed the need to enable the Accessibility Inspector by hand, so give that a go, see how you get on.
I also plan to add a simple generator al la Rails to do the basic cucumber setup for a new application, should be landing soon.
|