Created by: agilob
I played a bit with surefire config locally. mvn test
with config from master branch runs in 418 seconds on my laptop so this was my baseline. I tried a few different things, experimented with configuration on parallel classes, methods etc. and got to this point where mvn test
now completes in 280 seconds
From surefire doesn't really encourage to use fork parallelism:
forkCount=1/reuseForks=false executes each test class in its own JVM process, one after another. It creates the highest level of separation for the test execution, but it would probably also give you the longest execution time of all the available options. Consider it as a last resort.
testng had to be downgraded to support parallel
flag in surefire, but that will be fixed in the next version of surefire:
https://stackoverflow.com/questions/68143219/maven-surefire-failsafe-testng-7-4-0-parallel-error-void-org-testng-xml-xmlsuit