Hi,
When using calabash to do UI tests, I encountered an error:
Running calabash-android test…
$ calabash-android “run” “/bitrise/deploy/app-release-unsigned.apk”
No test server found for this combination of app and calabash version. Recreating test server.
Done signing the test server. Moved it to test_servers/0d8ca8aeb60b15c9e203ec3f0d843fac_0.9.0.apk
cannot load such file – calabash-cucumber/cucumber (LoadError)
/usr/local/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' /usr/local/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require’
/bitrise/src/features/ios/support/env.rb:5:in<top (required)>' /usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/rb_support/rb_language.rb:96:in
load’
/usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/rb_support/rb_language.rb:96:inload_code_file' /usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:142:in
load_file’
/usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:84:inblock in load_files!' /usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:83:in
each’
/usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:83:inload_files!' /usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime.rb:253:in
load_step_definitions’
/usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/runtime.rb:61:inrun!' /usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/lib/cucumber/cli/main.rb:32:in
execute!’
/usr/local/lib/ruby/gems/2.3.0/gems/cucumber-2.4.0/bin/cucumber:8:in<top (required)>' /usr/local/bin/cucumber:22:in
load’
/usr/local/bin/cucumber:22:in `’
Failed to run command, error: exit status 1
This is strange. I do an Android UI tests but an error of iOS env.rb occurred.
I test my calabash testing in my local mac machine and is totally fine to work.
This is my calabash folder structure:
Can someone helps me to solve this problem?
Thanks.