I am trying to use the Gradle maxParallelForks functionality for executing integration tests in parallel, but unable to achieve this on CircleCi. Here are my configuration:
minHeapSize = “128m”
maxHeapSize = “1024m”
jvmArgs ‘-Xmx1024m’, ‘-Xms128m’
maxParallelForks = 2
name: run tests
command: ./gradlew test build --no-daemon
The problem which i am facing is that it only executes 1 test class at a time instead of executing 2 test classess parallelly. It is using the default configuration for resources i.e. 2CPU/4096MB.
Can you please help me in resolving this issue?