Also I could not find a #testing or equivalent channel in this slack, please let me know if there is a better suited channel for this.
j
Jendrik Johannes
02/15/2023, 10:53 AM
Yeah the docs could be better. That's one reason why I did a bit of an overview here:
https://youtu.be/YJjNQJSaFww▾
• The tests are executed in separate JVMs (Worker JVMs)
• Within one test tasks the JVMs are reused unless you set "forkEvery" to force the shutdown after a certain number of test classes
• If you set tests to run in parallel with "maxParallelForks" that is how many parallel JVMs will be forked for one test task
• "org.gradle.workers.max" is still respected and might lead to a lower number of Worker JVMs than defined in "maxParallelForks"
s
Satyarth Sampath
02/15/2023, 5:22 PM
Thank you, this does help clarify a few things. Would you also know what does the number on the test executor correspond to. Is that something like a pid for the test executor?
j
Jendrik Johannes
02/15/2023, 7:37 PM
I think it's just a number that's incremented in the Gradle Daemon. So the first worker started for your build is 1 the next 2 and so on. But I am not 100% sure.