junit module path: ensure idea-rt is always on the classpath

e.g. to avoid NoClassDefFound of Repeat class referenced from JUnitStarter which must be always on the classpath

GitOrigin-RevId: f7a36aefce08762ee63796776b74538d17be4830
This commit is contained in:
Anna Kozlova
2019-10-02 09:33:04 +00:00
committed by intellij-monorepo-bot
parent ce2dcf2884
commit df0a563b71
@@ -229,8 +229,8 @@ public abstract class JavaTestFrameworkRunnableState<T extends
finally {
getConfiguration().setProgramParameters(parameters);
}
javaParameters.getClassPath().addFirst(JavaSdkUtil.getIdeaRtJarPath());
configureClasspath(javaParameters);
javaParameters.getClassPath().addFirst(JavaSdkUtil.getIdeaRtJarPath());
for (JUnitPatcher patcher : JUNIT_PATCHER_EP.getExtensionList()) {
patcher.patchJavaParameters(project, module, javaParameters);