Undefined step definitions in IntelliJ

I wasted around an hour to solve this. My issue was, Idea was able to navigate from feature to step file. But when I wanted to execute one cucumber test from feature file (Right click and Run Scenario), it was giving error as undefined steps.

Solution: In the Edit Configuration -> provide the Glue for the cucumber which should be absolute path till steps folder. Please see below screen shot

enter image description here

This fixed my problem of running feature file from Idea. Hope this helps others.


Turns out I had the Gherkin plugin but not the Cucumber for Java plugin.