Is there a way to launch the VM only with tests that will actually be run?

(Russell Gold) #1

We have our unit tests running with forkEvery = 1. Sometimes we only want to run a subset of the tests, so we specify --tests some.test.package.*

But gradle launches a new VM for each and every test, and just avoids running the ones that don’t match the filter. That takes a lot of extra time. Is there a way for the test task to not launch a VM if it’s not going to run the test?

(Benjamin Muschko) #2

I believe there isn’t a way to do this at the moment.