Add kotlin-test-junit dependency to compiler stdlib tests

This commit is contained in:
Ilya Gorbunov
2017-10-15 21:39:35 +03:00
parent 20b122c1dd
commit 88bb14d0b4
2 changed files with 5 additions and 0 deletions
@@ -45,6 +45,10 @@ public class ForTestCompileRuntime {
public static File kotlinTestJarForTests() {
return assertExists(new File("dist/kotlinc/lib/kotlin-test.jar"));
}
@NotNull
public static File kotlinTestJunitJarForTests() {
return assertExists(new File("dist/kotlinc/lib/kotlin-test-junit.jar"));
}
@NotNull
public static File reflectJarForTests() {
@@ -57,6 +57,7 @@ public class StdlibTest extends KotlinTestWithEnvironment {
CompilerConfiguration configuration = KotlinTestUtils.newConfiguration(ConfigurationKind.JDK_NO_RUNTIME, TestJdkKind.FULL_JDK, runtimeClasspath);
JvmContentRootsKt.addJvmClasspathRoot(configuration, ForTestCompileRuntime.kotlinTestJarForTests());
JvmContentRootsKt.addJvmClasspathRoot(configuration, ForTestCompileRuntime.kotlinTestJunitJarForTests());
File junitJar = new File("libraries/lib/junit-4.11.jar");
assertTrue(junitJar.exists());