Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined method `feature' for #<Cucumber #928

Open
Hugofv opened this issue Mar 9, 2021 · 2 comments
Open

Undefined method `feature' for #<Cucumber #928

Hugofv opened this issue Mar 9, 2021 · 2 comments

Comments

@Hugofv
Copy link

Hugofv commented Mar 9, 2021

I have this erro on running apk.

OS System: macos.

undefined method feature' for #<Cucumber::Core::Test::Case: features/my_first.feature:3> (NoMethodError)
./features/support/app_installation_hooks.rb:10:in Before'

My test:

image

@Hugofv Hugofv changed the title Vndefined method `feature' for #<Cucumber Undefined method `feature' for #<Cucumber Mar 9, 2021
@Julioevm
Copy link
Contributor

What are you using to run this test ? Can you share the specific command?

@acass91
Copy link

acass91 commented Jun 1, 2021

I saw this as well after running bundle exec calabash-android gen followed by bundle exec calabash-android run my_apk.apk

      Could not execute command to start test server (RuntimeError)
      ./features/support/app_life_cycle_hooks.rb:5:in `Before'
      undefined method `feature' for #<Cucumber::Core::Test::Case: features/my_first.feature:3> (NoMethodError)
      ./features/support/app_installation_hooks.rb:10:in `Before'

From gem list --local, I see the following versions for Calabash and Cucumber.

calabash-android (0.9.22)
concurrent-ruby (1.1.8)
cucumber (4.1.0)
cucumber-core (7.1.0)
cucumber-create-meta (1.0.0)
cucumber-cucumber-expressions (10.3.0)
cucumber-gherkin (14.2.0)
cucumber-html-formatter (7.2.0)
cucumber-messages (12.4.0)
cucumber-tag-expressions (2.0.4)
cucumber-wire (3.1.0)

I was able to get around this issue by downgrading Cucumber to 3.1.0 in the Gemfile and running bundle update cucumber.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants