Generate JvmMultifileClass tests for Gradle
This commit is contained in:
+18
@@ -2060,6 +2060,11 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
|
|||||||
runTest("jps-plugin/testData/incremental/withJava/other/multifileClassRemoved/");
|
runTest("jps-plugin/testData/incremental/withJava/other/multifileClassRemoved/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("multifileDependantUsage")
|
||||||
|
public void testMultifileDependantUsage() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("multifilePackagePartMethodAdded")
|
@TestMetadata("multifilePackagePartMethodAdded")
|
||||||
public void testMultifilePackagePartMethodAdded() throws Exception {
|
public void testMultifilePackagePartMethodAdded() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded/");
|
runTest("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded/");
|
||||||
@@ -2378,6 +2383,19 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
public static class MultifileDependantUsage extends AbstractIncrementalJvmCompilerRunnerTest {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAllFilesPresentInMultifileDependantUsage() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded")
|
@TestMetadata("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
|||||||
+18
@@ -2060,6 +2060,11 @@ public class IncrementalJvmOldBackendCompilerRunnerTestGenerated extends Abstrac
|
|||||||
runTest("jps-plugin/testData/incremental/withJava/other/multifileClassRemoved/");
|
runTest("jps-plugin/testData/incremental/withJava/other/multifileClassRemoved/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("multifileDependantUsage")
|
||||||
|
public void testMultifileDependantUsage() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("multifilePackagePartMethodAdded")
|
@TestMetadata("multifilePackagePartMethodAdded")
|
||||||
public void testMultifilePackagePartMethodAdded() throws Exception {
|
public void testMultifilePackagePartMethodAdded() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded/");
|
runTest("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded/");
|
||||||
@@ -2378,6 +2383,19 @@ public class IncrementalJvmOldBackendCompilerRunnerTestGenerated extends Abstrac
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
public static class MultifileDependantUsage extends AbstractIncrementalJvmOldBackendCompilerRunnerTest {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAllFilesPresentInMultifileDependantUsage() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded")
|
@TestMetadata("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
|||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
================ Step #1 =================
|
||||||
|
|
||||||
|
Compiling files:
|
||||||
|
src/partB.kt
|
||||||
|
src/usagePartB.kt
|
||||||
|
End of files
|
||||||
|
Exit code: ABORT
|
||||||
|
------------------------------------------
|
||||||
|
COMPILATION FAILED
|
||||||
|
Unresolved reference: OuterClass
|
||||||
Reference in New Issue
Block a user