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

时间:2018-08-17 19:01:21

标签: selenium cucumber cucumber-jvm

我想并行运行脚本,因此已将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)

有人知道是什么原因引起的吗?

1 个答案:

答案 0 :(得分:0)

我有同样的错误。这是我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>