[TEST] Mute tests in IC JS Klib tests using exclude pattern instead of .mute file
This commit is contained in:
+1
-26
@@ -64,7 +64,7 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPureKotlin() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), null, false);
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), Pattern.compile("^sealed.*"), false);
|
||||
}
|
||||
|
||||
@TestMetadata("annotations")
|
||||
@@ -572,31 +572,6 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/returnTypeChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesAddImplements")
|
||||
public void testSealedClassesAddImplements() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesAddImplements/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesAddInheritor")
|
||||
public void testSealedClassesAddInheritor() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesAddInheritor/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesRemoveImplements")
|
||||
public void testSealedClassesRemoveImplements() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesRemoveImplements/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesRemoveInheritor")
|
||||
public void testSealedClassesRemoveInheritor() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesRemoveInheritor/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesUseSwitch")
|
||||
public void testSealedClassesUseSwitch() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesUseSwitch/");
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructorInlined")
|
||||
public void testSecondaryConstructorInlined() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||
|
||||
+1
-28
@@ -8,7 +8,6 @@ package org.jetbrains.kotlin.incremental;
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.MuteExtraSuffix;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -20,7 +19,6 @@ import java.util.regex.Pattern;
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated extends AbstractIncrementalJsKlibCompilerWithScopeExpansionRunnerTest {
|
||||
@TestMetadata("jps-plugin/testData/incremental/pureKotlin")
|
||||
@MuteExtraSuffix(".jsklib")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PureKotlin extends AbstractIncrementalJsKlibCompilerWithScopeExpansionRunnerTest {
|
||||
@@ -64,7 +62,7 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPureKotlin() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), null, false);
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), Pattern.compile("^sealed.*"), false);
|
||||
}
|
||||
|
||||
@TestMetadata("annotations")
|
||||
@@ -572,31 +570,6 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/returnTypeChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesAddImplements")
|
||||
public void testSealedClassesAddImplements() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesAddImplements/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesAddInheritor")
|
||||
public void testSealedClassesAddInheritor() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesAddInheritor/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesRemoveImplements")
|
||||
public void testSealedClassesRemoveImplements() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesRemoveImplements/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesRemoveInheritor")
|
||||
public void testSealedClassesRemoveInheritor() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesRemoveInheritor/");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClassesUseSwitch")
|
||||
public void testSealedClassesUseSwitch() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/sealedClassesUseSwitch/");
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructorInlined")
|
||||
public void testSecondaryConstructorInlined() throws Exception {
|
||||
runTest("jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
|
||||
|
||||
Reference in New Issue
Block a user