Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run JUnit4-Tests parallel in Eclipse

maven-surefire-plugin enables running JUnit tests in parallel[1] - is there way to run JUnit-Tests in Eclipse in parallel, too?

[1] e.g.

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

"Running tests in parallel" https://maven.apache.org/plugins/maven-surefire-plugin/examples/junit.html

like image 447
Markus Schulte Avatar asked Oct 25 '12 07:10

Markus Schulte


People also ask

Can you run JUnit tests in parallel?

Once the parallel execution property is set (or enabled), the JUnit Jupiter engine will run the tests in parallel as per the configurations provided with the synchronization mechanisms.

Does JUnit 4 run tests in parallel?

A plugin that allows you to run JUnit4 tests in parallel (using multiple CPU cores/threads).

How can you use Maven to run unit tests in parallel?

Maven Dependencies In a nutshell, Surefire provides two ways of executing tests in parallel: Multithreading inside a single JVM process. Forking multiple JVM processes.


1 Answers

You can use tempus-fugit to run tests in parallel in Eclipse. This should work.

like image 67
Matthew Farwell Avatar answered Oct 02 '22 16:10

Matthew Farwell