From c85b73c793cf52cf8a3d8892e8db19cbeb3b2485 Mon Sep 17 00:00:00 2001 From: Bixilon Date: Mon, 14 Nov 2022 15:52:49 +0100 Subject: [PATCH] make integration tests run after unit tests --- build.gradle.kts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 8bc3b2caf..090ea6825 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -133,8 +133,7 @@ when (os) { testing { suites { - - val test by getting(JvmTestSuite::class) { + getting(JvmTestSuite::class) { testType.set(TestSuiteType.UNIT_TEST) useJUnitJupiter("5.9.1") @@ -174,7 +173,7 @@ testing { } - val integrationTest by registering(JvmTestSuite::class) { + registering(JvmTestSuite::class) { testType.set(TestSuiteType.INTEGRATION_TEST) useTestNG("7.6.1") @@ -211,7 +210,7 @@ testing { val options = this as TestNGOptions options.preserveOrder = true } - shouldRunAfter(test) + shouldRunAfter("test") } } } @@ -221,7 +220,7 @@ testing { } } } - val benchmarkTest by registering(JvmTestSuite::class) { + registering(JvmTestSuite::class) { testType.set(TestSuiteType.PERFORMANCE_TEST) useTestNG("7.6.1")