Cucumber Undefined Step, Though Defined Using IntelliJ

后端 未结 5 811
慢半拍i
慢半拍i 2020-12-16 22:12

I\'m trying to run a .feature file to test a simple RESTEasy web application: https://github.com/dashorst/jaxrs-quickstart-resteasy.

However, the IntelliJ keeps say

5条回答
  •  抹茶落季
    2020-12-16 22:29

    I'll recommend a solution step by step while there is correct solutions above.

    1. Go through "Run > Edit Configurations..." within your IntelliJ
    2. Select your cucumber java class from "Cucumber java" list
    3. Fill the "Glue" with the path where your cucumber implementation is in. For example, "com.blabla.test.steps"
    4. Click "Apply" button
    5. Try to run/debug your cucumber feature file

提交回复
热议问题