diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/testbase/KGPBaseTest.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/testbase/KGPBaseTest.kt index 5bf9f79cba6..bea668f710d 100644 --- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/testbase/KGPBaseTest.kt +++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/testbase/KGPBaseTest.kt @@ -5,6 +5,7 @@ package org.jetbrains.kotlin.gradle.testbase +import com.intellij.testFramework.TestDataPath import org.jetbrains.kotlin.test.WithMuteInDatabase import org.junit.jupiter.api.Tag import org.junit.jupiter.api.TestInstance @@ -13,13 +14,23 @@ import java.nio.file.Path /** * Base class for all Kotlin Gradle plugin integration tests. + * + * @[TestDataPath] helps DevKit IDE Plugin to find "related testData". + * It provides various IDE-assistance (e.g. "NavigateToTestData"-actions and gutter icons) + * For the test named 'testFoo' the "related testData" will be checked at: + * '/foo' + * + * If the test uses a name that doesn't correspond to the testdata, you can add + * @org.jetbrains.kotlin.test.TestMetadata(") + * */ @Tag("JUnit5") @TestInstance(TestInstance.Lifecycle.PER_CLASS) @WithMuteInDatabase +@TestDataPath("\$CONTENT_ROOT/resources/testProject") abstract class KGPBaseTest { open val defaultBuildOptions = BuildOptions() @TempDir lateinit var workingDir: Path -} \ No newline at end of file +}