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.
 

0
3 comments

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)?

0

Hi Olga,

When using Ruby you can declare hooks in your features/support/env.rb file, or any other file under the features/support directory (for example, in a file called support/hooks.rb). (see: https://cucumber.io/docs/cucumber/api/?lang=ruby)

0

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. 

0

Please sign in to leave a comment.