From 271341419a8241e17a711a129ce0fa6f5a03584f Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Mon, 7 Nov 2022 11:49:15 +0100 Subject: [PATCH] [Native][tests] Fix: Always configure JUnit platform for unit tests --- buildSrc/src/main/kotlin/nativeTest.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/buildSrc/src/main/kotlin/nativeTest.kt b/buildSrc/src/main/kotlin/nativeTest.kt index 02db00e3284..e3a7318943e 100644 --- a/buildSrc/src/main/kotlin/nativeTest.kt +++ b/buildSrc/src/main/kotlin/nativeTest.kt @@ -172,10 +172,8 @@ fun Project.nativeTest( // Pass the current Gradle task name so test can use it in logging. environment("GRADLE_TASK_NAME", path) - tag?.let { - useJUnitPlatform { - includeTags(it) - } + useJUnitPlatform { + tag?.let { includeTags(it) } } doFirst {