Tuesday, 16 April 2013

UI testing for IOS (calabash ios)


  1. In a terminal, go to your iOS project
    • cd path-to-my-ios-project (i.e. directory containing .xcodeproj file)
  2. Install calabash-cucumber gem (this make take some time because of dependencies)
    • gem install calabash-cucumber
    • (Note you may need to run sudo gem install calabash-cucumber if you get ERROR: While executing gem ... (Gem::FilePermissionError)).
  3. Setup your project for Calabash-iOS.
    • calabash-ios setup (Answer the questions and read the output :)
  4. Generate a skeleton features folder for your tests
    • calabash-ios gen (this also copies the scripts irb_iosX.sh for "interactive development" into your current dir)
  5. In Xcode, build your project using the -cal scheme
    • -cal scheme
  6. Run the generated test!
    • cucumber

No comments: