Gradle parallell test support:maxParallelForks

#1

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:
Build.gradle:
test {
minHeapSize = “128m”
maxHeapSize = “1024m”
forkEvery 100
jvmArgs ‘-Xmx1024m’, ‘-Xms128m’
maxParallelForks = 2
}
Config.yml
environment:
GRADLE_OPTS: -Xmx2048m
TERM: dumb
- run:
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?

Thanks,
Umer