Description
Currently we use https://github.com/randomizedtesting/ for running the tests.
The Gradle plugin calls into ant to do the heavy lifting.
It also replaces the Gradle Test
task that the java plugin creates ( called test
) with it's own RandomizedTestingTask
. This proved to be problematic, see #31324, and might no longer be possible in some future Gradle release.
Also, running the tests in parallel with the ant runner is independent from Gradle and does not honor Gradle --max-workers
setting, which makes it hard to make other parts of Gradle run in parallel as it can lead to too many threads being created.
It is possible to use the reandmizedtesting runner i.e. @RunWith
and run the tests with the Grade test runner. This proposal is to replace the ant
part and not the runner.