Read more

How to make RubyMine aware of Cucumber steps defined in gems

Deleted user #8131
June 28, 2019Software engineer

Newer versions of RubyMine seem to have deprecated the Settings page at Languages and Frameworks -> Cucumber. Steps from Spreewald seem to be linked automatically.

If your Ruby project includes a gem like Spreewald Show archive.org snapshot that comes with some external step definition, RubyMine does not know about them by default and will highlight the step as an undefined reference:

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

Image

To link these external step definitions to RubyMine, add the corresponding gems to your RubyMine-Settings:

  • Go to Settings (ctrl + alt + s)
  • Go to Languages and Frameworks
  • Go to Cucumber
  • There, add your gem (e.g "spreewald") via the little "+" from the bar on the right .

You might have to restart RubyMine to see the expected result.

Now, RubyMine no longer complains about undefined step definitions and allows you to dig into the definition via ctrl + b or ctrl + click.

Image

Posted to makandra dev (2019-06-28 08:28)