Set tests lifecycle to be 'PER_CLASS'.

Usually Gradle tests should be pretty isolated between each other to use
'PER_METHOD' lifecycle.

^KT-45744 In Progress
This commit is contained in:
Yahor Berdnikau
2021-03-22 16:52:21 +01:00
committed by TeamCityServer
parent 40c525c4a6
commit 5b218bdad2
@@ -13,6 +13,7 @@ import org.jetbrains.kotlin.gradle.KOTLIN_VERSION
import org.jetbrains.kotlin.gradle.utils.minSupportedGradleVersion
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.extension.ExtensionContext
import org.junit.jupiter.api.io.TempDir
import org.junit.jupiter.params.ParameterizedTest
@@ -26,6 +27,7 @@ import kotlin.streams.asStream
/**
* Base class for all Kotlin Gradle plugin integration tests.
*/
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
abstract class KGPBaseTest {
open val defaultBuildOptions = BuildOptions()