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 {
}
Hi, I am trying to use this plugin for parallel execution and here is my plugin confiugration:
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.