这是黄瓜-jvm并行版本,maven surefire版本和要配置为并行运行测试用例的编译器的正确组合 [英] Which is correct combination of versions of cucumber-jvm parallel, maven surefire and compiler to be configured for running test cases in parallel

查看:82
本文介绍了这是黄瓜-jvm并行版本,maven surefire版本和要配置为并行运行测试用例的编译器的正确组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Cucumber-jvm并行插件的新手,并且想基本了解两件事-

I am new to cucumber-jvm parallel plugin and want to understand 2 things basically -

首先-我要选择的版本正确的组合是Cucumber-jvm并行插件,maven surefire和编译器插件

第二个-支持从V 4.0并行执行的cucumber-jvm实现和cucumber-jvm-parallel插件之间有什么区别

人们可以在Cucumber-jvm-parallel插件中配置两个阶段.目标为validate或generateRunners.有人可以指导我这两个之间的区别吗?

             <id>generateRunners</id>
                <phase>generate-test-sources</phase>
                <goals>
                    <goal>generateRunners</goal>
                </goals>

下面的jvm实现中是否缺少任何必需的配置

Is there any mandatory configuring missing in below jvm implementation

    <plugin>
        <groupId>com.github.temyers</groupId>
        <artifactId>cucumber-jvm-parallel-plugin</artifactId>
        <version>2.2.0</version>
        <executions>
            <execution>
                <id>generateRunners</id>
                <phase>generate-test-sources</phase>
                <goals>
                    <goal>generateRunners</goal>
                </goals>
                <configuration>


<glue>com.jacksparrow.automation.steps_definitions.functional</glue>
                        <outputDirectory>${project.build.directory}/generated-test-sources</outputDirectory>
                        <featuresDirectory>src/test/resources/features/functional/</featuresDirectory>
                        <cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir>
                        <format>json,html</format>
                        <tags>"~@ignored"</tags>
                    </configuration>
                </execution>
            </executions>
        </plugin>

请指导我,因为这使我感到困惑.

Please guide me as this is making me confused.

推荐答案

因此,总体情况是,如果我们使用的是黄瓜v 4.0.0或更高版本,则我们将不使用黄瓜-jvm并行插件.因为Cucumber 4.0.0实现的主要原则之一是为并行执行提供支持,并成为Maven Surefire版本,所以我们也可以使用最新版本,即3.0.0-M3.

So overall picture is, if we are using cucumber v 4.0.0 or above then we shall not use cucumber-jvm parallel plugin. Because one of the main principle of Cucumber 4.0.0 implementation is to provide support to parallel execution and coming to Maven Surefire version, we can use latest one as well i.e. 3.0.0-M3.

这篇关于这是黄瓜-jvm并行版本,maven surefire版本和要配置为并行运行测试用例的编译器的正确组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆