From 62d1143ed3f2f76c4f52eaaa1e079fc8b8c7f264 Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Thu, 5 Oct 2023 23:30:14 +0300 Subject: Register Kotlin stdlib classpath in every unit test (#3183) Due to the recent changes in how Analysis API handles builtins, the update to the fresh version of Analysis API requires registering Kotlin stdlib in every testsuite. --- .../base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt | 1 + plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'plugins/base/src/test/kotlin/content/annotations') diff --git a/plugins/base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt b/plugins/base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt index 9dfcfed3..7612aff8 100644 --- a/plugins/base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt +++ b/plugins/base/src/test/kotlin/content/annotations/KotlinDeprecatedTest.kt @@ -27,6 +27,7 @@ class KotlinDeprecatedTest : BaseAbstractTest() { sourceSets { sourceSet { sourceRoots = listOf("src/") + classpath = listOfNotNull(jvmStdlibPath) analysisPlatform = "jvm" } } diff --git a/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt b/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt index 8576803c..4cb25704 100644 --- a/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt +++ b/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt @@ -27,6 +27,7 @@ class SinceKotlinTest : AbstractRenderingTest() { sourceSets { sourceSet { sourceRoots = listOf("src/") + classpath = listOfNotNull(jvmStdlibPath) analysisPlatform = "jvm" } } @@ -185,6 +186,7 @@ class SinceKotlinTest : AbstractRenderingTest() { sourceSets { sourceSet { sourceRoots = listOf("src/") + classpath = listOfNotNull(jvmStdlibPath) analysisPlatform = "jvm" } sourceSet { @@ -193,10 +195,12 @@ class SinceKotlinTest : AbstractRenderingTest() { } sourceSet { sourceRoots = listOf("src/") + classpath = listOfNotNull(commonStdlibPath) analysisPlatform = "common" } sourceSet { sourceRoots = listOf("src/") + classpath = listOfNotNull(jsStdlibPath) analysisPlatform = "js" } sourceSet { -- cgit