Hello guys,
Today I will post about install calabash-android in your machine. And for this I will use the project sample of this git repository:ย https://github.com/calabash/x-platform-example.git
You can do the download too if you don’t have a project neither an apk file.
Download and install ruby and RVM:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
rvm install ruby 1.9.3
sudo gem install calabash-android
Install bundler unless you already have it installed:
gem install bundler
(or sudo gem install bundler)
Install gems in theย Gemfile:
bundle install
iOS
To run the iOS tests, make sure Xcode 5.1 is installed with command line tools.
Run
bundle exec cucumber -p ios
Android
To run the Android tests, ensure a recent Android SDK is installed, and that
- environment variableย
ANDROID_HOMEย is set to point to the sdk folder, for example/Users/krukow/android/adt/sdk
PS: This an example of a project with generated key and certificates, so you don’t need assign the app.
Run
bundle exec calabash-android run prebuilt/Android-debug.apk -p android
This example you must to install bundle too. If you have any question or comment, just write below. Thank you again ๐