在Eclipse中并行运行JUnit4测试

在Eclipse中并行运行JUnit4测试,junit,parallel-processing,junit4,Junit,Parallel Processing,Junit4,maven surefire插件支持并行运行JUnit测试[1]-有没有办法在Eclipse中并行运行JUnit测试 [1] 例如 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.12</version> &l

maven surefire插件支持并行运行JUnit测试[1]-有没有办法在Eclipse中并行运行JUnit测试

[1] 例如

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.12</version>
    <configuration>
        <parallel>methods</parallel>
    </configuration>
</plugin>

org.apache.maven.plugins

您可以使用在Eclipse中并行运行测试。这应该是可行的。

值得一提的是,[tempus fugit][1]Eclipse插件只在顺序中对每个测试类并行运行测试方法(就像上面的maven surefire插件
parallel/methods
配置),而不是并行测试类本身(如maven surefire插件
parallel/classesAndMethods
configuration,最终与多模块maven并行构建相结合)。[1]: