Home > Test Automation > Calabash-Android Install Example Project

Calabash-Android Install Example Project

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
Install calabash-android:
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


To run the iOS tests, make sure Xcode 5.1 is installed with command line tools.


bundle exec cucumber -p ios


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.


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 🙂


Fonts: https://github.com/calabash/x-platform-example

  1. Geld K.
    July 28, 2014 at 1:55 pm

    when I put “bundle install” in console I receive “Could not locate Gemfile”. What I must do?

    • July 28, 2014 at 9:14 pm

      Hello Geld !!
      How are you ? I have some questions to answer you:

      Did you install the bundle ?
      If Yes : Did you clone the repository ?
      If Yes: You have to run this command inside the project’s folder… In my case:

      Desktop/Rafaela/Estudos/x-platform-example rafaelasouza$ bundle install

      And it will work 🙂 Let me know if you got it !

  1. February 26, 2015 at 11:38 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: