Undefined step definitions in IntelliJ

后端 未结 9 2419
予麋鹿
予麋鹿 2021-02-18 23:25

I\'m trying to follow this article to match Cucumber specs with step definitions in IntelliJ.

When I press Alt+Enter, I see Inspection \'Undefined Step\' options

9条回答
  •  孤独总比滥情好
    2021-02-18 23:30

    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

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

提交回复
热议问题