This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
7 Replies Last post: Jul 21, 2014 11:58 PM by Andrey Vokin  
Steve Donie Newbie 4 posts since
Jun 14, 2006
Currently Being Moderated

Jul 3, 2014 6:44 PM

RubyMine not recognizing Cucumber steps in shared project

We are starting to use Cucumber heavily in several projects, and I have extracted some steps that are common to several projects to a shared git repository. When I am creating features and scenarios, RubyMine very helpfully shows me that the steps defined in the project I am working on are correct, and offers auto complete. But for the steps that are in my shared repository, I get no help. Here is a screenshot:

 

Screenshot from 2014-07-03 09:14:29.png

I actually have defined the step that is shown with the yellow background, but I don't know how to tell RubyMine "Also look over here for step definitions"

 

I've looked at the RubyMine help, but I have been unsuccessful in finding anything.

 

I'm running RubyMine 6.3.2, build 135-809 on Ubuntu 12.04

Andrey Vokin JetBrains 100 posts since
Jun 17, 2011
Currently Being Moderated
Jul 3, 2014 6:36 PM in response to: Steve Donie
Re: RubyMine not recognizing Cucumber steps in shared project

I can't see the screen shot. Could you attach it once again?

pablo fernandez Newbie 3 posts since
Jul 17, 2014
Currently Being Moderated
Jul 17, 2014 2:07 AM in response to: Steve Donie
Re: RubyMine not recognizing Cucumber steps in shared project

Same problem.

 

Im my case, rubymine cannot found step definitions inside a gem.

Andrey Vokin JetBrains 100 posts since
Jun 17, 2011
Currently Being Moderated
Jul 17, 2014 12:53 PM in response to: pablo fernandez
Re: RubyMine not recognizing Cucumber steps in shared project

What is gem's name?

pablo fernandez Newbie 3 posts since
Jul 17, 2014
Currently Being Moderated
Jul 17, 2014 3:46 PM in response to: Andrey Vokin
Re: RubyMine not recognizing Cucumber steps in shared project

Its just a private/personal gem that Ive made. It contains step definitions. Its not one of the "big gems".

 

 

 

Basically, I have step definitions inside the gem, in a path that is like features/step_definitions/web_page_steps.rb.

 

If I launch the tests using Terminal (I am using Watir and Cucumber in MacOs, and the MacOs version of Rubymine 6), the tests are executed correctly (it is able to find the steps, and the methods that call the steps). And everything works.

 

 

 

But, nevertheless, RubyMine is still giving me an alert of "Missing Step definition" for every step that is contained inside my gem.

pablo fernandez Newbie 3 posts since
Jul 17, 2014
Currently Being Moderated
Jul 21, 2014 11:27 PM in response to: pablo fernandez
Re: RubyMine not recognizing Cucumber steps in shared project

The gem I am actually talking about is "bimblis" gem.

 

Anyway, how is that "it was given usability to factory-girl and other major gems"? What are the steps to give this kind of usability to a gem?

Andrey Vokin JetBrains 100 posts since
Jun 17, 2011
Currently Being Moderated
Jul 21, 2014 11:58 PM in response to: pablo fernandez
Re: RubyMine not recognizing Cucumber steps in shared project

At the moment RubyMine scans for step_definition only inside 7 hardcoded gems (FactoryGirls, Aruba, Calabash and several others). We are thinking about a way to provide possibility to specify custom gems to scan for step definitions.  

More Like This

  • Retrieving data ...