This looks like common issue. I have tried most of solutions on the web. Unfortunately non of them worked for me. I am using IntelliJ 2019.3 Ultimate edition
Cucumber-Java (bundle) and Gherkin (bundle) plugins already there.
Solutions tried:
This is Maven project, I got following doubts
- Should I add
info.cukes
to projectPOM
despite of having plugin in the IDE. Even one of my Gradle project also facing the same issue. Is this mandatory, if so why. Because I can't find
cucumber.api.cli.main
to set in the Main Class AnswerYou can set the glue location globally by opening "Edit Configurations -> Defaults -> Cucumber Java -> Glue" and add the package names.
What does this mean Answer
My project did not have the steps marked as test source root
Can anyone shed some light here please.