"Create Step Definition" and "Create all steps definition" options missing from Maven Cucumber project

Answered

Hi,

I have created a small example Maven-based Cucumber project. When I press Alt+Enter on cucumber steps (English line), I'm not getting the options "Create Step Definition" and "Create all steps definition". Also the lines are not highlighted as they should. But I'm able to navigate to step definitions which I have implemented manually.

I have downloaded all the plugins - "Gherkin" and "Cucumber for Java". Still no luck.

What I'm I missing?




1
3 comments

Check some other sample for the reference, see https://github.com/ostlin/idea-cucumber-plugin-lambda-swe.

You may need to use src/test/java instead of src/main/java and you may need to set CucumberOptions with the glue parameter specifying where your step definitions are located.

0
Avatar
Permanently deleted user

Can you please suggest me how to create a step definition fille.

0

Specify Java and create a file using the dialog on your screenshot.

0

Please sign in to leave a comment.