Cucumber fails to recognize steps definition (Intellij, Java Maven)
I created a java maven project (java v22) in intellij with junit, cucumber-junit, cucumber-java, cucumber-picocontainer, and selenium-java maven dependencies (all cucumber from io.cucumber v. 7.18.0,and selenium is 4.22.0, while junit is 4.13.2).
I created a "features" folder in the root directory, and inside there a file called Ebay_Home.feature with the content:
And then in ./src/test/java, I created a directory called "steps" with java file called EbayHome_Steps.java with the content:
The content (printing something) doesnt matter, but my problem is when I right click
Ebay_Home.feature
file and click Run 'Feature: Ebay_Home'
in intellij, I get an error about that there are no steps defined...
Anyone know how to fix this? Its a bare project - totally new that I just created these two files in.6 Replies
⌛
This post has been reserved for your question.
Hey @Steadhaven! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Hi, you may need to set the glue path for cucumber with information where steps are...
I usually create a Suite class in the parent package where I also define a "cucumber glue" with package with steps.
Thanks a lot
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
it fixed my problem
Post Closed
This post has been closed by <@305362010374406144>.