From e978c6f8e0ecc7ddda0ebe7583df4a5210432915 Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Thu, 13 Jan 2022 18:02:08 +0900 Subject: [PATCH] [kotlin] Move tests in kotlin.features-trainer module to a separate module This commit partially solves a problem of a circular module dependency between tests of 'kotlin.compiler-plugins.kotlinx-serialization.common' module, tests of 'kotlin.idea.tests' module, and tests of 'kotlin.features-trainer'. GitOrigin-RevId: e969138bf215202dbe077950d12d64510c6fd5e1 --- .idea/modules.xml | 1 + .../kotlin.features-trainer.iml | 3 --- .../tests/kotlin.features-trainer.tests.iml | 26 +++++++++++++++++++ .../ifs/FileStructureSuggesterKotlinTest.kt | 0 .../IntroduceVariableSuggesterKotlinTest.kt | 0 .../training/ifs/KotlinSuggestersTestUtils.kt | 2 +- .../ReplaceCompletionSuggesterKotlinTest.kt | 0 .../ifs/SurroundWithSuggesterKotlinTest.kt | 0 .../training/ifs/UnwrapSuggesterKotlinTest.kt | 0 .../{ => tests}/testData/KotlinCodeExample.kt | 0 .../kotlin.all-tests/kotlin.all-tests.iml | 2 ++ 11 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 plugins/kotlin/features-trainer/tests/kotlin.features-trainer.tests.iml rename plugins/kotlin/features-trainer/{testSrc => tests/test}/org/jetbrains/kotlin/training/ifs/FileStructureSuggesterKotlinTest.kt (100%) rename plugins/kotlin/features-trainer/{testSrc => tests/test}/org/jetbrains/kotlin/training/ifs/IntroduceVariableSuggesterKotlinTest.kt (100%) rename plugins/kotlin/features-trainer/{testSrc => tests/test}/org/jetbrains/kotlin/training/ifs/KotlinSuggestersTestUtils.kt (83%) rename plugins/kotlin/features-trainer/{testSrc => tests/test}/org/jetbrains/kotlin/training/ifs/ReplaceCompletionSuggesterKotlinTest.kt (100%) rename plugins/kotlin/features-trainer/{testSrc => tests/test}/org/jetbrains/kotlin/training/ifs/SurroundWithSuggesterKotlinTest.kt (100%) rename plugins/kotlin/features-trainer/{testSrc => tests/test}/org/jetbrains/kotlin/training/ifs/UnwrapSuggesterKotlinTest.kt (100%) rename plugins/kotlin/features-trainer/{ => tests}/testData/KotlinCodeExample.kt (100%) diff --git a/.idea/modules.xml b/.idea/modules.xml index 52100cdd8a7e..083ff3c1090c 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -973,6 +973,7 @@ + diff --git a/plugins/kotlin/features-trainer/kotlin.features-trainer.iml b/plugins/kotlin/features-trainer/kotlin.features-trainer.iml index b4b465dc8948..ee4b7e9961bf 100644 --- a/plugins/kotlin/features-trainer/kotlin.features-trainer.iml +++ b/plugins/kotlin/features-trainer/kotlin.features-trainer.iml @@ -5,7 +5,6 @@ - @@ -21,8 +20,6 @@ - - diff --git a/plugins/kotlin/features-trainer/tests/kotlin.features-trainer.tests.iml b/plugins/kotlin/features-trainer/tests/kotlin.features-trainer.tests.iml new file mode 100644 index 000000000000..9f849aaf1789 --- /dev/null +++ b/plugins/kotlin/features-trainer/tests/kotlin.features-trainer.tests.iml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/FileStructureSuggesterKotlinTest.kt b/plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/FileStructureSuggesterKotlinTest.kt similarity index 100% rename from plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/FileStructureSuggesterKotlinTest.kt rename to plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/FileStructureSuggesterKotlinTest.kt diff --git a/plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/IntroduceVariableSuggesterKotlinTest.kt b/plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/IntroduceVariableSuggesterKotlinTest.kt similarity index 100% rename from plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/IntroduceVariableSuggesterKotlinTest.kt rename to plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/IntroduceVariableSuggesterKotlinTest.kt diff --git a/plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/KotlinSuggestersTestUtils.kt b/plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/KotlinSuggestersTestUtils.kt similarity index 83% rename from plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/KotlinSuggestersTestUtils.kt rename to plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/KotlinSuggestersTestUtils.kt index d11d92d8b318..2773644a93a2 100644 --- a/plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/KotlinSuggestersTestUtils.kt +++ b/plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/KotlinSuggestersTestUtils.kt @@ -6,5 +6,5 @@ import java.io.File object KotlinSuggestersTestUtils { val testDataPath: String - get() = PlatformTestUtil.getCommunityPath().replace(File.separatorChar, '/') + "/plugins/kotlin/features-trainer/testData" + get() = PlatformTestUtil.getCommunityPath().replace(File.separatorChar, '/') + "/plugins/kotlin/features-trainer/tests/testData" } \ No newline at end of file diff --git a/plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/ReplaceCompletionSuggesterKotlinTest.kt b/plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/ReplaceCompletionSuggesterKotlinTest.kt similarity index 100% rename from plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/ReplaceCompletionSuggesterKotlinTest.kt rename to plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/ReplaceCompletionSuggesterKotlinTest.kt diff --git a/plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/SurroundWithSuggesterKotlinTest.kt b/plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/SurroundWithSuggesterKotlinTest.kt similarity index 100% rename from plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/SurroundWithSuggesterKotlinTest.kt rename to plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/SurroundWithSuggesterKotlinTest.kt diff --git a/plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/UnwrapSuggesterKotlinTest.kt b/plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/UnwrapSuggesterKotlinTest.kt similarity index 100% rename from plugins/kotlin/features-trainer/testSrc/org/jetbrains/kotlin/training/ifs/UnwrapSuggesterKotlinTest.kt rename to plugins/kotlin/features-trainer/tests/test/org/jetbrains/kotlin/training/ifs/UnwrapSuggesterKotlinTest.kt diff --git a/plugins/kotlin/features-trainer/testData/KotlinCodeExample.kt b/plugins/kotlin/features-trainer/tests/testData/KotlinCodeExample.kt similarity index 100% rename from plugins/kotlin/features-trainer/testData/KotlinCodeExample.kt rename to plugins/kotlin/features-trainer/tests/testData/KotlinCodeExample.kt diff --git a/plugins/kotlin/kotlin.all-tests/kotlin.all-tests.iml b/plugins/kotlin/kotlin.all-tests/kotlin.all-tests.iml index 6a6ddf5078de..2ab80a972651 100644 --- a/plugins/kotlin/kotlin.all-tests/kotlin.all-tests.iml +++ b/plugins/kotlin/kotlin.all-tests/kotlin.all-tests.iml @@ -99,5 +99,7 @@ + + \ No newline at end of file