cucumber / godog

Cucumber for golang
MIT License
2.32k stars 255 forks source link

Can't navigate to step definition from Gherkin step #600

Open SilviuOpenline opened 10 months ago

SilviuOpenline commented 10 months ago

Hi guys, I have some working godog tests, implemented in IntelliJ. I can successfully run them either from terminal or from the TestFeature - the issue though is that when I open the Feature file, all the steps look like being unrecognized, and Ctrl-click-ing them doesn't take me to the step definition. How can I fix this glue issue so that I can easily go from the feature file to the implementation?

Thank you,

Johnlon commented 1 month ago

This is, or was, a gap in Intelli plugins not GoDog. However since this comment was written there is now a plugin for IntelliJ. I've used it successfully on the 2024 Ultimate edition of Intelli - it's a 3rd party plugin "Cucumber Go" - dunno if it works with community.

The go support in Intellij is so woeful however that it might be better seeing if you can get used to VSCode and find a suitable plugin there.