temyers / cucumber-jvm-parallel-plugin

Maven plugin to help running Cucumber features in parallel
Apache License 2.0
129 stars 121 forks source link

Runtime Error : method format() - Symbol not found #184

Closed sudhakarnraju closed 6 years ago

sudhakarnraju commented 6 years ago

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

com.github.temyers cucumber-jvm-parallel-plugin 1.0.1 generateRunners validate generateRunners com.myorg.tests src/test/resources/com target false "~@ignored"

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