From ff22f456a0ca8f358f5460bf8012d717a0cb0171 Mon Sep 17 00:00:00 2001 From: Yahor Berdnikau Date: Tue, 21 Feb 2023 11:31:35 +0100 Subject: [PATCH] Fix KGP integration tests tasks run tests with other tags Before this change specific test task (for example 'kgpJvmTests') will run also test cases that included into test class annotated with "JvmKGP" tag, but test case itself annotated with, for example, "OtherKGP". Now specific test tasks should only run tests for given test tag. --- .../build.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin-integration-tests/build.gradle.kts index 0fa55239a22..d7f0374ed27 100644 --- a/libraries/tools/kotlin-gradle-plugin-integration-tests/build.gradle.kts +++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/build.gradle.kts @@ -241,6 +241,7 @@ val jvmTestsTask = tasks.register("kgpJvmTests") { maxParallelForks = maxParallelTestForks useJUnitPlatform { includeTags("JvmKGP") + excludeTags("JsKGP", "NativeKGP", "DaemonsKGP", "OtherKGP", "MppKGP", "AndroidKGP") includeEngines("junit-jupiter") } } @@ -251,6 +252,7 @@ val jsTestsTask = tasks.register("kgpJsTests") { maxParallelForks = maxParallelTestForks useJUnitPlatform { includeTags("JsKGP") + excludeTags("JvmKGP", "NativeKGP", "DaemonsKGP", "OtherKGP", "MppKGP", "AndroidKGP") includeEngines("junit-jupiter") } } @@ -261,6 +263,7 @@ val nativeTestsTask = tasks.register("kgpNativeTests") { maxParallelForks = maxParallelTestForks useJUnitPlatform { includeTags("NativeKGP") + excludeTags("JvmKGP", "JsKGP", "DaemonsKGP", "OtherKGP", "MppKGP", "AndroidKGP") includeEngines("junit-jupiter") } } @@ -273,6 +276,7 @@ val daemonsTestsTask = tasks.register("kgpDaemonTests") { useJUnitPlatform { includeTags("DaemonsKGP") + excludeTags("JvmKGP", "JsKGP", "NativeKGP", "OtherKGP", "MppKGP", "AndroidKGP") includeEngines("junit-jupiter") } } @@ -283,6 +287,7 @@ val otherPluginsTestTask = tasks.register("kgpOtherTests") { maxParallelForks = maxParallelTestForks useJUnitPlatform { includeTags("OtherKGP") + excludeTags("JvmKGP", "JsKGP", "NativeKGP", "DaemonsKGP", "MppKGP", "AndroidKGP") includeEngines("junit-jupiter") } } @@ -293,6 +298,7 @@ val mppTestsTask = tasks.register("kgpMppTests") { maxParallelForks = maxParallelTestForks useJUnitPlatform { includeTags("MppKGP") + excludeTags("JvmKGP", "JsKGP", "NativeKGP", "DaemonsKGP", "OtherKGP", "AndroidKGP") includeEngines("junit-jupiter") } } @@ -303,6 +309,7 @@ val androidTestsTask = tasks.register("kgpAndroidTests") { maxParallelForks = maxParallelTestForks useJUnitPlatform { includeTags("AndroidKGP") + excludeTags("JvmKGP", "JsKGP", "NativeKGP", "DaemonsKGP", "OtherKGP", "MppKGP") includeEngines("junit-jupiter") } }