temyers / cucumber-jvm-parallel-plugin

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

plugin error in the newly created runner files #190

Closed lavanya413 closed 5 years ago

lavanya413 commented 5 years ago

Hi, I am trying to use this plugin for parallel execution and here is my plugin confiugration:

com.github.temyers cucumber-jvm-parallel-plugin 2.2.0 generateRunners generate-test-sources generateRunners src/test/java/com/jpmc/ct/icrd/steps ${project.build.directory}/generated-test-sources src/test/resources/Entitlements/ FEATURE target/cucumber-parallel true json true

On i do, maven clean test, runner files are getting generated in the target/generated-test-sources directory. However, am getting compilation failure in the runner file as plugin attribute is getting displayed instead of format. Please see autogenerated runnerfile parallel01IT.java below: @RunWith(Cucumber.class) @CucumberOptions(strict = true, features = {"I:/NovWeek1/icrd-automation/src/test/resources/Entitlements/CPG.feature"}, plugin = {"json:target/cucumber-parallel/1.json"}, monochrome = true, tags = {}, glue = { "src/test/java/com/jpmc/ct/icrd/steps" }) public class Parallel01IT { }

Error Log:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project icrd-automation: Compilation failure: Compilation failure: [ERROR] /I:/NovWeek1/icrd-automation/target/generated-test-sources/Parallel03IT.java:[9,10] cannot find symbol [ERROR] symbol: method plugin() [ERROR] location: @interface cucumber.api.CucumberOptions [ERROR] /I:/NovWeek1/icrd-automation/target/generated-test-sources/Parallel02IT.java:[9,10] cannot find symbol [ERROR] symbol: method plugin() [ERROR] location: @interface cucumber.api.CucumberOptions [ERROR] /I:/NovWeek1/icrd-automation/target/generated-test-sources/Parallel01IT.java:[9,10] cannot find symbol [ERROR] symbol: method plugin() [ERROR] location: @interface cucumber.api.CucumberOptions

Please help me to resolve.