Undefined step definitions in IntelliJ

后端 未结 9 2443
予麋鹿
予麋鹿 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:28

    "Undefined" step error message would appear if you import a new BDD project.

    This error could appear due to two reasons.

    1. If you have not installed the "Cucumber for Java" plugin.
    2. If you import any BDD projects then it will not detect step definition file.

    Solution: 1. If the plugin is not found then you need to install from the below location. File->Settings->Plugins->MarketPlace->Cucumber for Java 2. After Importing the project disable the plugin and enable once again in the Installed section under Installed.

提交回复
热议问题