I have this configuration:
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/resources/features",
glue = "com.cucumberTest.stepDefinitions",
monochrome=true,
plugin = {
"html:target/cucumber-html-report",
"json:target/cucumber.json",
"pretty:target/cucumber-pretty.txt",
"usage:target/cucumber-usage.json",
"junit:target/cucumber-results.xml"
}
)
and I try to convert in this:
Main.main(new String[]{"--threads", "4",
"-p","timeline:target/cucumber-parallel-report",
"-p","json:target/prueba/cucumber.json",
"-p","junit:target/cucumber-results.xml",
"-p","pretty:target/cucumber-pretty.txt",
"-p","html:target/cucumber-html-report",
"-g", "com.cucumberTest.stepDefinitions", "src/test/resources/features/"});
but with the tag @cucumberOption. Also I am trying use the next plugin for this and I think that I get it but I want to get in the @cucumberOptions
plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<parallel>both</parallel>
<threadCount>15</threadCount>
</configuration>
</plugin>
Can I get it?