Pragmatists/JUnitParams

Parallelize test runs

Open

#84 aperta il 15 giu 2016

Vedi su GitHub
 (5 commenti) (2 reazioni) (0 assegnatari)HTML (151 fork)batch import
help wantedreviewed

Metriche repository

Star
 (887 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Could we add a feature for the runner to parallelize test execution (using an executor service based on the available core or whatever policy you deem appropriate)?

I've about 1000 parametrized tests in a single module and while intellij is showing me a total runtime of about 4s, in reality it takes more like 40-50s (i suspect the startup/shutdown harness work, class loading, etc, are at play). These are pure unit tests and do not access outside resources so they are definitely CPU bound and CPU utliziation is only about 30% while running. Suggestions very welcome. Thanks.

Guida contributor