Hi!If I've set several options via the annotation, e.g.@CucumberOptions(format = { "pretty", "html:target/cucumber", "json:target/cucumber.json" },tags = "@all",features = "target/test-classes/features")If I then set the runtime option to-Dcucumber.options="src/test/resources/features/abc --tags ~@xyz"What will happen; what will the effective options look like?format = { "pretty", "html:target/cucumber", "json:target/cucumber.json" },tags = "~@xyz",features = "src/test/resources/features/abc"
Christian wrote:If I've set several options via the annotation, e.g.@CucumberOptions(format = { "pretty", "html:target/cucumber", "json:target/cucumber.json" },tags = "@all",features = "target/test-classes/features")If I then set the runtime option to-Dcucumber.options="src/test/resources/features/abc --tags ~@xyz"What will happen; what will the effective options look like?format = { "pretty", "html:target/cucumber", "json:target/cucumber.json" },tags = "~@xyz",features = "src/test/resources/features/abc"Yes,Cucumber-JVM will use the options from @CucumberOptions that aren't overridden by the -Dcucumber.options statement.
Christian wrote:Hi!If I've set several options via the annotation, e.g.@CucumberOptions(format = { "pretty", "html:target/cucumber", "json:target/cucumber.json" },tags = "@all",features = "target/test-classes/features")If I then set the runtime option to-Dcucumber.options="src/test/resources/features/abc --tags ~@xyz"What will happen; what will the effective options look like?format = { "pretty", "html:target/cucumber", "json:target/cucumber.json" },tags = "~@xyz",features = "src/test/resources/features/abc"Yes,Cucumber-JVM will use the options from @CucumberOptions that aren't overridden by the -Dcucumber.options statement.