mpp: Run tests from common modules should recompile correspond JVM implementation module

#KT-23722 Fixed
This commit is contained in:
Sergey Rostov
2018-04-11 11:07:16 +03:00
parent 44482dbe90
commit f7695dd039
@@ -120,6 +120,7 @@ class KotlinJUnitRunConfigurationProducer : RunConfigurationProducer<JUnitConfig
val implModule = ktFile.module?.findJvmImplementationModule() ?: return
val sdk = ModuleRootManager.getInstance(implModule).sdk
if (sdk != null) {
configuration.setModule(implModule)
configuration.isAlternativeJrePathEnabled = true
configuration.alternativeJrePath = sdk.homePath
}