Reputation: 233
I have followed all necessary steps an installed ruby and bundle.
which ruby
/Users/v-bpurkayastha/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
which gem
/Users/v-bpurkayastha/.rvm/rubies/ruby-1.9.3-p194/bin/gem
but on intellij
idea while running it say
Cucumber support disabled because 'cucumber-rails' gem or Cucumber Rails plugin
are missing. Install gem and add it to the Gemfile
On run configuration it says
No cucumber gem found in sdk
even after selecting sdk.
Please help me out. many thanks,
Upvotes: 1
Views: 3709
Reputation: 1046
For my version (IntelliJ 2018.3 Ultimate), since my project is consisted of java modules as well as cucumber test module (in the "test/func" folder). I had to
Set up ruby and its gem
Import the test folder as a module
Add the Ruby SDK to that module
Upvotes: 0
Reputation: 91
I have had a similar issue with my IntelliJ Idea 14 where it was incorrectly assigning the path for Gems bin directory under project settings' SDK for Ruby.
I changed it to /.rvm/gems/ruby-2.1.4/bin and when running the cucumber tests it picks it up and run the acceptance tests.
Upvotes: 4
Reputation: 1
I had the same problem. When I viewed the module settings it did show the cucumber gem in the list. I clicked on the cucumber gem and clicked 'update gems'. It did find a newer version of the cucumber gem (1.3.15 instead of 1.3.14) and updated it. I was able to run my cucumber tests after that with no error.
Upvotes: 0