Hi,
I'm trying to create a testing service to run on Openshift and for that I have a spring boot application which initializes a web api.
When called, this API initializes a Cucumber() object with a typical BDDRunner.class which has @CucumberOptions on it.
@CucumberOptions(
features = "src/main/resources",
glue = "com.processing.bdd",
tags = {"@match"})
public class BddRunner {}
After changing the Annotations using Annotation proxy, I run it like so.
Cucumber test = new Cucumber(BddRunner.class);
new JUnitCore().run(test);
But when I run the jar using java -jar feature-runner.jar
It starts up nicely, however, when i hit the API, it says that No Backends were found on CLASSPATH
Normally the springboot jar is a fat jar and has all the dependencies in it already, resources and classes but it doens't recognize them perhaps.
When I tried to add all the libs in the same folder as the feature-runner.jar, it got pass the backends error, but error-ed on the point where it tried to find the features
When i hardcoded the feature path to the full path, it went pass that point but gave error that the steps are not implemented, i.e. it didn't link the features to glue.
This is a gradle project, am I missing any classpath specs in the project?
I have all the glue code and resources in the main package since jar doesn't compile test package.
Please help.