diff --git a/ballerina-tests/build.gradle b/ballerina-tests/build.gradle index 439a60c2eb..5aa1d1dea1 100644 --- a/ballerina-tests/build.gradle +++ b/ballerina-tests/build.gradle @@ -215,8 +215,8 @@ task ballerinaTest { " ${parallelTestFlag} ${testParams} ${groupParams} ${disableGroups} ${windowsDisableGroups}" + " ${debugParams} && exit %%ERRORLEVEL%%" } else { - commandLine 'sh', '-c', "${distributionBinPath}/bal test ${graalvmFlag} ${parallelTestFlag} ${testParams}" + - " ${groupParams} ${disableGroups} ${debugParams}" + commandLine 'sh', '-c', "${balJavaDebugParam} ${distributionBinPath}/bal test ${graalvmFlag} " + + "${parallelTestFlag} ${testParams} ${groupParams} ${disableGroups} ${debugParams}" } } if (project.hasProperty('balGraalVMTest')) {