Article: Loading `cucumber.options` from external files
@CucumberOptions(...)
class MyCucumberTests {
public static void main(...) {
Properties properties = new Properties();
properties.load(new ClassPathResource(...));
JUnitCore runner = new JUnitCore();
System.setProperty("cucumber.options", properties.getProperty("cucumber.options"));
runner.run(MyCucumberTests.class)
}
}
Edited by Jamie Tanna