Reputation: 71
I am using Cucumber with Java on Eclipse IDE. Trying to navigate from .feature file to Step definition, however when I hit enter button and hover mouse to the Given, then or When it is not turning in to hyperlink and after click as well not going anywhere.
Upvotes: 7
Views: 43232
Reputation: 21
Following 3 steps are quite handy while configuring any Cucumber project from new/existing in Eclipse:
This will solve the original problem of control click (navigation to step definition file from feature file) in Eclipse as well.
Upvotes: 1
Reputation: 111
Install Cucumber Eclipse Plugin from Eclipse Marketplace;
Once the plugin is installed, Create a feature file
;
Right Click on Project -> Configure -> Convert to Cucumber project;
Now try Ctrl + Click on any step from feature file.
Upvotes: 11
Reputation: 81
Install " Cucumber Eclipse Plugin " From Eclipse Marketplace once the plugin is installed Create a feature file .
Right Click on Project -> Configure -> Convert to Cucumber project
once its Converted all steps within feature file will redirect to step-definition
Upvotes: 6
Reputation: 310
Are you using Cucumber 5? There are opened issues about this:
Upvotes: 1
Reputation: 19
Uninstall Cucumber from marketplace and restart the eclipse
Then just search for keyword "Cucumber" in the marketplace, install it and restart Eclipse.
Now from project tree open your feature file with "Cucumber Editor".
Control + Click and you are good to go.
Upvotes: 1