I’ve a suite of integration tests in a project that takes a long time to run. I’d like to try to speed this up and run multiple tests at the same time.
I can’t simply fork the test process because the test use a database and would create inconsistent results if truly parallelised. I’ve split the tests into a series of manageable groups and create separate Test tasks for each that use a combination of system properties and test filters to allow them to run indepentently.
What I can’t figure out is how to run these separate tasks in parallel. They are all in the same project so --parallel
doesn’t help. I’ve tried the configuration-cache as AFAIK it’s supposed to allow this scenario but the tasks are still executed sequentially. Is there any way to tell why the configuration-cache doesn’t think these can be parallelised or some other way I can get the behaviour I’d like?
TIA
Craig