Pragmatists/JUnitParams

Parallelize test runs

Open

#84 opened on Jun 15, 2016

View on GitHub
 (5 comments) (2 reactions) (0 assignees)HTML (151 forks)batch import
help wantedreviewed

Repository metrics

Stars
 (887 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide