I have Cucumber JVM stuff that runs fine as part of my Maven build. When I try to run it using a Configuration from intelliJ it will often not find the Step Definitions. I've actually been able to debug through stuff so I think my configuration is correct. However, it will often not be able to find the Steps.
I haven't been able to determine what the key thing is that is making it work sometimes and not others.
My Steps are located under src/bdd/java and this folder shows up in the Module Configuration as a "Test Source Folder". The package name is correct as is the same as what I use in my Maven build.
Here is my configuration:
Main Class: cucumber.api.cli.Main
Feature or folder path: my/features
Program arguments --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome
Working directory: my/module
Use classpath of module: myModule
I receive the following type of message for all of the Steps:
Undefined step: Given I create a locator as "versioning-locator" with search path folders: