Anadea Inc. internal mini-conference on November 5th, 2015.
Calabash Android + Calabash iOS | Kirill Machuhin | Slides
A brief report about the conference:
https://anadea.info/blog/november-5th-2015-mini-conference
5. Which tool to choose?
The key factors
● Ruby on Rails server
● Cross-platform support (Android, iOS)
● framework updatability
● running on real devices
6. Calabash. Adavantages.
● Calabash Android
● Calabash iOS
● Ruby
● Gherkin Syntax (Cucumber style)
● Calabash Android last updated - 26 days ago
● Calabash iOS last updated - a month ago
● Testing on the real devices
7. Calabash iOS. Installation
# Install calabash ios gem
$ gem install calabash-cucumber
# Generate a features dir
$ bundle exec calabash-ios gen
# Install calabash.framework to .xcodeproj
$ calabash-ios setup
9. calabash-ios setup
● Generates calabash scheme for iOS project.
● Connects calabash.framework to our project (testing
server)
10. Runnig tests. iOS
To run on physical device:
● BUNDLE_ID=com.anadea.***
● DEVICE_ENDPOINT=http://192.168.100.85:37265
The launch command:
$ bundle exec cucumber
11. Calabash Android. Installation
# Install calabash Android gem
$ gem install calabash-android
# Generate a features dir
$ bundle exec calabash-android gen
22. The advantages of implementation
● there is no duplicate code (*.feature, *_steps.rb)
● possibility of easy access to objects via ActiveRecord
● emulation of the second client working on the server side
23. The disadvantages of implementation
● different launch commands (cucumber, calabash-android run)
● it is not possible to work in the debug mode, provided by calabash (remedy is
binding.pry :) )
24. Getting rid of disadvantages
CALABASHER
(include calabash-ios & calabash-android)