Hook navigation support
Answered
I would like to request a feature for the Rubymine IDEA to add navigation support from Cucumber hooks (e.g., Before, After, Around) in feature files to their corresponding Ruby hook definitions, similar to the existing step definition navigation. This would allow users to quickly locate and edit hook implementations directly from feature files, improving workflow efficiency for test automation projects.
Please sign in to leave a comment.
Hello,
As far as I know, Cucumber hooks aren't explicitly written in feature files, so could you please specify how you would expect to navigate to hooks in RubyMine (using gutter icons, special action)?
Hi Olga,
When using Ruby you can declare hooks in your
features/support/env.rbfile, or any other file under thefeatures/supportdirectory (for example, in a file calledsupport/hooks.rb). (see: https://cucumber.io/docs/cucumber/api/?lang=ruby)Hello,
Thank you for the details provided. I've submitted a corresponding feature request on our tracker, so could you please add your vote to it.