write module classpath if forked per module even if all tests were located in one module as classpath could be from the project as per-config (IDEA-155036)

This commit is contained in:
Anna.Kozlova
2016-04-22 19:31:27 +02:00
parent b7eddbbbc3
commit dd93b4ba45
@@ -369,7 +369,7 @@ public abstract class JavaTestFrameworkRunnableState<T extends ModuleBasedConfig
protected void writeClassesPerModule(String packageName, JavaParameters javaParameters, Map<Module, List<String>> perModule)
throws FileNotFoundException, UnsupportedEncodingException, CantRunException {
if (perModule != null && perModule.size() > 1) {
if (perModule != null) {
final String classpath = getScope() == TestSearchScope.WHOLE_PROJECT
? null : javaParameters.getClassPath().getPathsString();