1

In my project, I create simple feature file in my maven project using cucumber syntax.

Login.feature file

but IntelliJ IDEA, not highlight steps in feature file and also I cant use ALT+ENTER key to create step definition

I added the cucumber-java dependencies and also installed the Gherkin and cucumber plugins, but still feature files aren't recognized as they should be. What could be the problem?

  • Any error messages? – Yu Zhang Feb 14 '18 at 17:59
  • Nope, no any error message – Sachintha Feb 14 '18 at 18:07
2

Solved

File --> Settings--> Editor --> Inspection And

Check all the options in Cucumber like following

enter image description here

-1

I too get same problem when tried to create from the scratch.I have found this solution goto File --> Settings --> FileTypes --> find Cucumber Scenario --> and enter *.feature in Registered pattern

Hope this helps....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.