Here is a snippet from the Cucumber-JVM repository on how to run the java-helloworld example by passing the cucumber options:
mvn test -Dcucumber.options="--format json-pretty --glue classpath:cucumber/examples/java/helloworld src/test/resources"
Keep in mind that it will override all parameters in the @ Cucumber.Options annotation that you specified in "RunCukesTest". I have not been able to work for my own tests, but maybe this will help.
So, it seems that you need to provide all the parameters necessary to start the cucumber, including the java class path and where the code is located using the "-glue" parameter.
Fab
source share