[Gradle] Move project isolation test to separate test suite
^KT-59826 In Progress
This commit is contained in:
committed by
Space Team
parent
b8e1349b72
commit
b1965e746f
+32
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.gradle
|
||||
|
||||
import org.gradle.util.GradleVersion
|
||||
import org.jetbrains.kotlin.gradle.testbase.*
|
||||
import org.junit.jupiter.api.DisplayName
|
||||
|
||||
class ProjectIsolationIT : KGPBaseTest() {
|
||||
|
||||
override val defaultBuildOptions: BuildOptions
|
||||
get() = super.defaultBuildOptions.copy(configurationCache = true, projectIsolation = true)
|
||||
|
||||
@DisplayName("Should be compatible with project isolation")
|
||||
@JvmGradlePluginTests
|
||||
@GradleTestVersions(
|
||||
minVersion = TestVersions.Gradle.G_7_1,
|
||||
maxVersion = TestVersions.Gradle.G_7_6
|
||||
)
|
||||
@GradleTest
|
||||
fun testProjectIsolationInJvmSimple(gradleVersion: GradleVersion) {
|
||||
project(
|
||||
projectName = "instantExecution",
|
||||
gradleVersion = gradleVersion,
|
||||
) {
|
||||
build(":main-project:compileKotlin")
|
||||
}
|
||||
}
|
||||
}
|
||||
-16
@@ -199,22 +199,6 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
|
||||
}
|
||||
}
|
||||
|
||||
@GradleTest
|
||||
@DisplayName("Should be compatible with project isolation")
|
||||
@GradleTestVersions(
|
||||
minVersion = TestVersions.Gradle.G_7_1,
|
||||
maxVersion = TestVersions.Gradle.G_7_6
|
||||
)
|
||||
fun testProjectIsolation(gradleVersion: GradleVersion) {
|
||||
project(
|
||||
projectName = "instantExecution",
|
||||
gradleVersion = gradleVersion,
|
||||
buildOptions = defaultBuildOptions.copy(configurationCache = true, projectIsolation = true),
|
||||
) {
|
||||
build(":main-project:compileKotlin")
|
||||
}
|
||||
}
|
||||
|
||||
@DisplayName("Proper Gradle plugin variant is used")
|
||||
@GradleTestVersions(
|
||||
additionalVersions = [
|
||||
|
||||
Reference in New Issue
Block a user