在Eclipse中并行运行JUnit4-Tests

Mar*_*lte 10 parallel-processing junit junit4

maven-surefire-plugin可以并行运行JUnit测试[1] - 是否可以并行运行Eclipse中的JUnit-Tests?

[1]例如

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.12</version>
    <configuration>
        <parallel>methods</parallel>
    </configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)

"并行运行测试" https://maven.apache.org/plugins/maven-surefire-plugin/examples/junit.html

Mat*_*ell 14

您可以使用tempus-fugit在Eclipse中并行运行测试.这应该工作.

  • 值得一提的是[tempus-fugit] [1] Eclipse插件“仅”按顺序在每个测试类中并行运行测试方法(例如上述maven-surefire-plugin的parallel / methods配置),而不是测试类自己并行执行(例如maven-surefire-plugin的parallel / classesAndMethods配置,最终与多模块Maven并行构建结合使用)。[1]:http://tempusfugitlibrary.org/documentation/junit/parallel/ (2认同)