diff --git a/plugins/kotlin/gradle/multiplatform-tests-k2/test/org/jetbrains/kotlin/gradle/idea/importing/multiplatformTests/k2/K2MppHighlightingIntegrationTest.kt b/plugins/kotlin/gradle/multiplatform-tests-k2/test/org/jetbrains/kotlin/gradle/idea/importing/multiplatformTests/k2/K2MppHighlightingIntegrationTest.kt index 2e9cd2799189..37fb53cc8c73 100644 --- a/plugins/kotlin/gradle/multiplatform-tests-k2/test/org/jetbrains/kotlin/gradle/idea/importing/multiplatformTests/k2/K2MppHighlightingIntegrationTest.kt +++ b/plugins/kotlin/gradle/multiplatform-tests-k2/test/org/jetbrains/kotlin/gradle/idea/importing/multiplatformTests/k2/K2MppHighlightingIntegrationTest.kt @@ -7,6 +7,7 @@ import org.jetbrains.kotlin.gradle.multiplatformTests.AbstractKotlinMppGradleImp import org.jetbrains.kotlin.gradle.multiplatformTests.TestConfigurationDslScope import org.jetbrains.kotlin.gradle.multiplatformTests.testFeatures.GradleProjectsPublishingTestsFeature import org.jetbrains.kotlin.gradle.multiplatformTests.testFeatures.checkers.highlighting.HighlightingChecker +import org.jetbrains.kotlin.gradle.multiplatformTests.testFeatures.checkers.orderEntries.OrderEntriesChecker import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode import org.jetbrains.kotlin.test.TestMetadata import org.jetbrains.plugins.gradle.tooling.annotation.PluginTargetVersions @@ -53,7 +54,11 @@ class K2MppHighlightingIntegrationTest : AbstractKotlinMppGradleImportingTest() @Test @PluginTargetVersions(pluginVersion = "1.9.20+") fun testForwardDeclarations() { - doTest() + doTest { + // Added for investigation of KTIJ-37466 + // TODO: remove after investigation of flaky test failings + onlyCheckers(OrderEntriesChecker, GradleProjectsPublishingTestsFeature, HighlightingChecker) + } } @Test diff --git a/plugins/kotlin/idea/tests/testData/gradle/multiplatform/k2/highlighting/forwardDeclarations/dependencies.txt b/plugins/kotlin/idea/tests/testData/gradle/multiplatform/k2/highlighting/forwardDeclarations/dependencies.txt new file mode 100644 index 000000000000..78f13ed7951b --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/gradle/multiplatform/k2/highlighting/forwardDeclarations/dependencies.txt @@ -0,0 +1,170 @@ +MODULES +project + +project.consumer + +project.consumer.appleMain + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (COMPILE) + a:consumer-cinterop-myInterop:macos_x64 (COMPILE) + consumer.commonMain (refines, COMPILE) + consumer.nativeMain (refines, COMPILE) + +project.consumer.appleTest + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (TEST) + a:consumer-cinterop-myInterop:macos_x64 (TEST) + consumer.appleMain (friend, TEST) + consumer.commonMain (friend, TEST) + consumer.commonTest (refines, TEST) + consumer.macosMain (friend, TEST) + consumer.macosX64Main (friend, TEST) + consumer.nativeMain (friend, TEST) + consumer.nativeTest (refines, TEST) + +project.consumer.commonMain + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (COMPILE) + +project.consumer.commonTest + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (TEST) + consumer.commonMain (friend, TEST) + consumer.nativeMain (friend, TEST) + +project.consumer.linuxMain + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (COMPILE) + a:consumer-cinterop-myInterop:linux_x64 (COMPILE) + consumer.commonMain (refines, COMPILE) + consumer.nativeMain (refines, COMPILE) + +project.consumer.linuxTest + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (TEST) + a:consumer-cinterop-myInterop:linux_x64 (TEST) + consumer.commonMain (friend, TEST) + consumer.commonTest (refines, TEST) + consumer.linuxMain (friend, TEST) + consumer.linuxX64Main (friend, TEST) + consumer.nativeMain (friend, TEST) + consumer.nativeTest (refines, TEST) + +project.consumer.linuxX64Main + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (COMPILE) + a:consumer-cinterop-myInterop:linux_x64 (COMPILE) + consumer.commonMain (refines, COMPILE) + consumer.linuxMain (refines, COMPILE) + consumer.nativeMain (refines, COMPILE) + +project.consumer.linuxX64Test + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (TEST) + a:consumer-cinterop-myInterop:linux_x64 (TEST) + consumer.commonMain (friend, TEST) + consumer.commonTest (refines, TEST) + consumer.linuxMain (friend, TEST) + consumer.linuxTest (refines, TEST) + consumer.linuxX64Main (friend, TEST) + consumer.nativeMain (friend, TEST) + consumer.nativeTest (refines, TEST) + +project.consumer.macosMain + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (COMPILE) + a:consumer-cinterop-myInterop:macos_x64 (COMPILE) + consumer.appleMain (refines, COMPILE) + consumer.commonMain (refines, COMPILE) + consumer.nativeMain (refines, COMPILE) + +project.consumer.macosTest + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (TEST) + a:consumer-cinterop-myInterop:macos_x64 (TEST) + consumer.appleMain (friend, TEST) + consumer.appleTest (refines, TEST) + consumer.commonMain (friend, TEST) + consumer.commonTest (refines, TEST) + consumer.macosMain (friend, TEST) + consumer.macosX64Main (friend, TEST) + consumer.nativeMain (friend, TEST) + consumer.nativeTest (refines, TEST) + +project.consumer.macosX64Main + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (COMPILE) + a:consumer-cinterop-myInterop:macos_x64 (COMPILE) + consumer.appleMain (refines, COMPILE) + consumer.commonMain (refines, COMPILE) + consumer.macosMain (refines, COMPILE) + consumer.nativeMain (refines, COMPILE) + +project.consumer.macosX64Test + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (TEST) + a:consumer-cinterop-myInterop:macos_x64 (TEST) + consumer.appleMain (friend, TEST) + consumer.appleTest (refines, TEST) + consumer.commonMain (friend, TEST) + consumer.commonTest (refines, TEST) + consumer.macosMain (friend, TEST) + consumer.macosTest (refines, TEST) + consumer.macosX64Main (friend, TEST) + consumer.nativeMain (friend, TEST) + consumer.nativeTest (refines, TEST) + +project.consumer.mingwMain + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (COMPILE) + a:consumer-cinterop-myInterop:mingw_x64 (COMPILE) + consumer.commonMain (refines, COMPILE) + consumer.nativeMain (refines, COMPILE) + +project.consumer.mingwTest + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (TEST) + a:consumer-cinterop-myInterop:mingw_x64 (TEST) + consumer.commonMain (friend, TEST) + consumer.commonTest (refines, TEST) + consumer.mingwMain (friend, TEST) + consumer.mingwX64Main (friend, TEST) + consumer.nativeMain (friend, TEST) + consumer.nativeTest (refines, TEST) + +project.consumer.mingwX64Main + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (COMPILE) + a:consumer-cinterop-myInterop:mingw_x64 (COMPILE) + consumer.commonMain (refines, COMPILE) + consumer.mingwMain (refines, COMPILE) + consumer.nativeMain (refines, COMPILE) + +project.consumer.mingwX64Test + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (TEST) + a:consumer-cinterop-myInterop:mingw_x64 (TEST) + consumer.commonMain (friend, TEST) + consumer.commonTest (refines, TEST) + consumer.mingwMain (friend, TEST) + consumer.mingwTest (refines, TEST) + consumer.mingwX64Main (friend, TEST) + consumer.nativeMain (friend, TEST) + consumer.nativeTest (refines, TEST) + +project.consumer.nativeMain + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (COMPILE) + consumer.commonMain (refines, COMPILE) + +project.consumer.nativeTest + Kotlin/Native {{KGP_VERSION}} - DISTRIBUTION STUB + Kotlin/Native: stdlib (TEST) + consumer.commonMain (friend, TEST) + consumer.commonTest (refines, TEST) + consumer.nativeMain (friend, TEST) + + +Test configuration: +- hiding following standard dependencies: sdk, self +- dependencies order is not checked