Search code examples
cucumbercalabashcalabash-ios

Where is the calabash_steps.rb file?


I am new to calabash and working with it since past few months. When I execute the pre-defined step I get below path "# calabash-cucumber-0.11.4/feature/step-definitios/calabash-steps.rb"

I know its associated with my workspace somehow but I am not able to get this calabash-steps.rb file (neither in my system nor on Google)

Can someone help me in getting this file. I just wanna see how the implementation is done for the step.

A lot of thanks in advance!


Solution

  • Those files will be in the gems library itself. If you are on a mac, open a terminal and type

    which calabash-android

    The output will be a file path to where the gem is installed. If you look there there will be the files you are looking for.

    If you are on windows you can run

    gem env

    and it will output a bunch of info and the GEM PATH section is the bit you want.

    Mine looks like this

    • GEM PATHS:
      • C:/Ruby193/lib/ruby/gems/1.9.1

    If you're getting started writing custom steps then you should check out the docs - https://github.com/calabash/calabash-ios/wiki/03-Writing-custom-steps