Running JUnit Tests in Parallel in IntelliJ IDEA

2019-01-25 11:41发布

问题:

I have a large suite of tests that takes about half an hour to run and would love to be able to the test classes in parallel.

Is there a way to do that with IntelliJ IDEA 9?

回答1:

IDEA will understand parallel JUnit tests only since version 10.

There is a tracker issue which you can vote for and watch for progress: http://youtrack.jetbrains.net/issue/IDEA-47103

We plan to add it in IDEA 10, but the priority would depend on the number of votes.



回答2:

Answering late for posterity.

You can make JUnit tests run in parallel in IntelliJ by changing the Fork mode in the test's run configuration.