[FIR] Move fir plugin tests to diagnostics sub directory

This commit is contained in:
Dmitriy Novozhilov
2021-09-30 16:18:01 +03:00
committed by TeamCityServer
parent 79f1779d89
commit ea93d23dca
20 changed files with 21 additions and 21 deletions
@@ -371,7 +371,7 @@ fun main(args: Array<String>) {
testGroup("plugins/fir/fir-plugin-prototype/tests-gen", "plugins/fir/fir-plugin-prototype/testData") {
testClass<AbstractFirAllOpenDiagnosticTest> {
model("")
model("diagnostics")
}
}
}
@@ -16,105 +16,105 @@ import java.util.regex.Pattern;
/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("plugins/fir/fir-plugin-prototype/testData")
@TestMetadata("plugins/fir/fir-plugin-prototype/testData/diagnostics")
@TestDataPath("$PROJECT_ROOT")
public class FirAllOpenDiagnosticTestGenerated extends AbstractFirAllOpenDiagnosticTest {
@Test
public void testAllFilesPresentInTestData() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData"), Pattern.compile("^(.+)\\.kt$"), null, true);
public void testAllFilesPresentInDiagnostics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData/diagnostics"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Nested
@TestMetadata("plugins/fir/fir-plugin-prototype/testData/checkers")
@TestMetadata("plugins/fir/fir-plugin-prototype/testData/diagnostics/checkers")
@TestDataPath("$PROJECT_ROOT")
public class Checkers {
@Test
public void testAllFilesPresentInCheckers() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData/checkers"), Pattern.compile("^(.+)\\.kt$"), null, true);
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData/diagnostics/checkers"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("signedNumbersCheckers.kt")
public void testSignedNumbersCheckers() throws Exception {
runTest("plugins/fir/fir-plugin-prototype/testData/checkers/signedNumbersCheckers.kt");
runTest("plugins/fir/fir-plugin-prototype/testData/diagnostics/checkers/signedNumbersCheckers.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("plugins/fir/fir-plugin-prototype/testData/checkers/simple.kt");
runTest("plugins/fir/fir-plugin-prototype/testData/diagnostics/checkers/simple.kt");
}
}
@Nested
@TestMetadata("plugins/fir/fir-plugin-prototype/testData/memberGen")
@TestMetadata("plugins/fir/fir-plugin-prototype/testData/diagnostics/memberGen")
@TestDataPath("$PROJECT_ROOT")
public class MemberGen {
@Test
public void testAllFilesPresentInMemberGen() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData/memberGen"), Pattern.compile("^(.+)\\.kt$"), null, true);
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData/diagnostics/memberGen"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("classWithGeneratedMembersAndNestedClass.kt")
public void testClassWithGeneratedMembersAndNestedClass() throws Exception {
runTest("plugins/fir/fir-plugin-prototype/testData/memberGen/classWithGeneratedMembersAndNestedClass.kt");
runTest("plugins/fir/fir-plugin-prototype/testData/diagnostics/memberGen/classWithGeneratedMembersAndNestedClass.kt");
}
@Test
@TestMetadata("generatedClassWithMembersAndNestedClasses.kt")
public void testGeneratedClassWithMembersAndNestedClasses() throws Exception {
runTest("plugins/fir/fir-plugin-prototype/testData/memberGen/generatedClassWithMembersAndNestedClasses.kt");
runTest("plugins/fir/fir-plugin-prototype/testData/diagnostics/memberGen/generatedClassWithMembersAndNestedClasses.kt");
}
@Test
@TestMetadata("topLevelCallables.kt")
public void testTopLevelCallables() throws Exception {
runTest("plugins/fir/fir-plugin-prototype/testData/memberGen/topLevelCallables.kt");
runTest("plugins/fir/fir-plugin-prototype/testData/diagnostics/memberGen/topLevelCallables.kt");
}
}
@Nested
@TestMetadata("plugins/fir/fir-plugin-prototype/testData/status")
@TestMetadata("plugins/fir/fir-plugin-prototype/testData/diagnostics/status")
@TestDataPath("$PROJECT_ROOT")
public class Status {
@Test
public void testAllFilesPresentInStatus() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData/status"), Pattern.compile("^(.+)\\.kt$"), null, true);
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData/diagnostics/status"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("metaAnnotation.kt")
public void testMetaAnnotation() throws Exception {
runTest("plugins/fir/fir-plugin-prototype/testData/status/metaAnnotation.kt");
runTest("plugins/fir/fir-plugin-prototype/testData/diagnostics/status/metaAnnotation.kt");
}
@Test
@TestMetadata("simpleAnnotation.kt")
public void testSimpleAnnotation() throws Exception {
runTest("plugins/fir/fir-plugin-prototype/testData/status/simpleAnnotation.kt");
runTest("plugins/fir/fir-plugin-prototype/testData/diagnostics/status/simpleAnnotation.kt");
}
@Test
@TestMetadata("visibilityTransformation.kt")
public void testVisibilityTransformation() throws Exception {
runTest("plugins/fir/fir-plugin-prototype/testData/status/visibilityTransformation.kt");
runTest("plugins/fir/fir-plugin-prototype/testData/diagnostics/status/visibilityTransformation.kt");
}
}
@Nested
@TestMetadata("plugins/fir/fir-plugin-prototype/testData/supertypes")
@TestMetadata("plugins/fir/fir-plugin-prototype/testData/diagnostics/supertypes")
@TestDataPath("$PROJECT_ROOT")
public class Supertypes {
@Test
public void testAllFilesPresentInSupertypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData/supertypes"), Pattern.compile("^(.+)\\.kt$"), null, true);
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/fir/fir-plugin-prototype/testData/diagnostics/supertypes"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("plugins/fir/fir-plugin-prototype/testData/supertypes/simple.kt");
runTest("plugins/fir/fir-plugin-prototype/testData/diagnostics/supertypes/simple.kt");
}
}
}