如何在 jvm-parallel 插件中配置执行步骤?当我们想要并行运行场景时



我想并行运行我的脚本,所以我将cucumber-jvm-parallel-plugin添加到我的pom文件中。在第<execution>步,我收到以下错误,

Plugin execution not covered by lifecycle configuration: com.github.temyers:cucumber-jvm-parallel-plugin:4.2.0:generateRunners (execution: generateRunners, phase: generate-test-sources)

有谁知道是什么导致了这个问题?

我有同样的错误。这是我的pom的编辑片段。如果您想要更多,请告诉我。

<build>
<plugins>
<plugin>
<groupId>com.github.temyers</groupId>
<artifactId>cucumber-jvm-parallel-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>generateRunners</id>
<phase>generate-test-sources</phase>
<goals>
<goal>generateRunners</goal>
</goals>
<configuration>
<glue>com.myclientname.element.loanage</glue>
<outputDirectory>${project.build.directory}/generated-test-sources</outputDirectory>
<featuresDirectory>src/test/resources/features</featuresDirectory>
<cucumberOutputDir>${project.build.directory}/JSON</cucumberOutputDir>
<format>json</format>
<!--<tags>${cucumber.options}</tags>-->
<strict>true</strict>
<monochrome>true</monochrome>
<tags>"@BusinessProcess,@B-63033_loanage_scenario1,@B-63033_loanage_scenario2,@B-63033_loanage_scenario3,@B-63033_loanage_scenario4"</tags>
<useTestNG>false</useTestNG>
<namingScheme>simple</namingScheme>
<parallelScheme>FEATURE</parallelScheme>
</configuration>
</execution>
</executions>
</plugin>

相关内容

最新更新