I am trying to execute a test inside a gradle project.But when Itry to execute the tests using 'gradle test' in Intellij it fails .
what I have tried
create and build the project without error using 'gradle clean build'
open run configuration in intellij , select gradle , and create and execution with gradle task 'test'
execute newly created gradle run configuration
what I observe
gradle fails at task 'test' with error 'Error: Could not create the Java Virtual Machine.'
also gradle run never stops until I forcefully stop it
also it keep printing ' gradle executor 1(,2,3 and so on) executing , failed '
I am using java 9 , intellij , gradle .