Have included the below in pom.xml. While the runners are getting generated in target/generated-test-sources folder , they include a CucumberOptions - format, which is not getting recognised and ends up with error. I tried explicitly supplying plugin for pretty, json, html as given in doc but no luck
Error Reported:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project elot-acceptance: Compilation failure: Compilation failure:
[ERROR] /Users/sudhakar/telstra/lot/elotuserportal/acceptance/target/generated-test-sources/cucumber/Parallel07IT.java:[9,14] cannot find symbol
[ERROR] symbol: method format()
[ERROR] location: @interface cucumber.api.CucumberOptions
Have included the below in pom.xml. While the runners are getting generated in target/generated-test-sources folder , they include a CucumberOptions - format, which is not getting recognised and ends up with error. I tried explicitly supplying plugin for pretty, json, html as given in doc but no luck
Error Reported:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project elot-acceptance: Compilation failure: Compilation failure: [ERROR] /Users/sudhakar/telstra/lot/elotuserportal/acceptance/target/generated-test-sources/cucumber/Parallel07IT.java:[9,14] cannot find symbol [ERROR] symbol: method format() [ERROR] location: @interface cucumber.api.CucumberOptions
POM.xml Configuration
Runner generated: import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class) @CucumberOptions(strict = false, features = {"classpath:com/mypath/mytests.feature"}, format = {"json:target/6.json", "pretty"}, monochrome = false, tags = {"~@ignored"}, glue = { "mytests.tests" }) public class Parallel06IT { }
as you could see format is set
Now during subsequent steps maven build fails [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project elot-acceptance: Compilation failure: Compilation failure: [ERROR] /Users/sudhakar/telstra/lot/elotuserportal/acceptance/target/generated-test-sources/cucumber/Parallel07IT.java:[9,14] cannot find symbol [ERROR] symbol: method format() [ERROR] location: @interface cucumber.api.CucumberOptions