Is there a way (we are willing to write a plugin if required) to pass different JVM arguments to each forked test JVM?
Background:
We use https://github.com/JetBrains/gradle-intellij-plugin to build and test an IntelliJ plugin. The issue is that tests have to run serialized in the IntelliJ test frameworks (lots of global state in an IDE…).
We would like to be able to take our X number of tests and fork them off into Y JVMs. Each with different JVM arguments / system properties to isolate the Intellij sandboxes from each other.
We would like to see this done at the Gradle layer so we do not have to worry about tagging tests manually.
Any guidance would be appreciated.