【问题标题】:how to set up parallel testing in maven-surefire-plugin如何在 maven-surefire-plugin 中设置并行测试
【发布时间】:2019-09-27 00:48:05
【问题描述】:

所有测试都会立即运行并加载计算机

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>3.0.0-M3</version>
    <configuration>
        <includes>
            <include>**/*CucumberRegressionRunner.java</include>
        </includes>
        <parallel>all</parallel>
        <useSystemClassLoader>false</useSystemClassLoader>
        <perCoreThreadCount>false</perCoreThreadCount>
        <forkCount>2.5c</forkCount>
        <reuseForks>true</reuseForks>
        <threadCount>2</threadCount>
    </configuration>
</plugin>

我不想运行所有包,我只需要并行运行 2-5 个测试

【问题讨论】:

    标签: java selenium automation automated-tests maven-surefire-plugin


    【解决方案1】:

    正如this post 的回答所描述的,您可以为测试创建一个应该并行运行的执行,以及一个不应该并行运行的测试执行。

    【讨论】:

      猜你喜欢
      • 2012-02-11
      • 1970-01-01
      • 2022-01-14
      • 2019-06-26
      • 1970-01-01
      • 2013-06-27
      • 1970-01-01
      • 2019-07-14
      • 2021-05-16
      相关资源
      最近更新 更多