Behat test: Navigation

When I have a Behat/Cucumber test description (i.e. a *.feature file containing Gherkin), PhpStorm colors all the lines containing steps (“Given”, “When” etc.). When I move the mouse over one of these lines, the tooltip says that it’s an undefined step reference.
So, obviously, PhpStorm seems to be able to recognize cross-references between the steps and the method annotations such as “@When”. But: how do I set this up? Or what filesystem layout would be necessary to enable PhpStorm to get this working?

TIA
Carsten

2 comments

I've had this same issue. I assume the plugin was initially built for RubyMine and so this hasn't been fully ported to storm yet but it would be good to know when this might be happening.

~ Steve

0

Like BlueM said it's base on Cucumber plugin.
You can find sources here: https://github.com/JetBrains/intellij-plugins/tree/master/cucumber

I'm looking for the same feature as you, so I will try to fork the plugin and create a behat one. But I never create Intellij plugin before :)

0

Please sign in to leave a comment.