0

I've multiple packages with absolutely independent pieces of java code. Some packages contain tests that run 5-6 second to complete. Right now, my tests execute sequentially which takes a lot of time to complete all tests in the whole project. However, I quite sure that it's possible to execute tests in package#1/package#2/package#3/.../package#10 simultaneously.

What should I do in order that all my tests from different packages execute at the same time ( without waiting for completion of each other )?

Tim Florian
  • 408
  • 1
  • 3
  • 13
  • You can give this plugin a try: https://plugins.jetbrains.com/plugin/16229-unit-test-parallel-runner – Csa77 Mar 25 '21 at 19:46

1 Answers1

0

You may want to check out the post and answers at Running junit tests in parallel in a Maven build?

The parallel unit test are supported with Junit 4.7+. If you are already using maven in your project it may just be easier to handle with the surefire plugin.

Community
  • 1
  • 1
M. Rizzo
  • 1,611
  • 12
  • 24