How can I access a junit class which is having cucumber option configs in main folder from Maven's test/java folder
I need to it because on development I need POM for building project which will create jar if build pass. In next stage I need to run that jar to another env where only jar will run so I can't use POM there and putted a main method in Main/Java package.
So try to trigger my TestRunner.java which having in Main/java from a JUNIT class from test, but due to package issue not able to do so.
I found it below but hasn't resolve my issue
Cannot access class in test package from main package (Eclipse)
So, the structure is like below:
src/main/java - having TestRunner.java
src.test.java - should have a junit class which can access TesrRunner.java for Maven build
Cucumeer Options
@CucumberOptions(plugin = { "pretty", "html:target/cucumber" }, features = { "classpath:features" }, glue = { TestingConstants.GLUE })
Any work around will be helpful