From 0b81b109147e11310d42ab7280fed74ffb4bf5d1 Mon Sep 17 00:00:00 2001 From: Alex Nordlund Date: Thu, 17 Aug 2023 17:55:26 +0200 Subject: [PATCH] Move skipIT/onlyIT properties into separate test tasks --- build.gradle.kts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 78a08fdb..807c779e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -105,11 +105,14 @@ tasks.withType(Test::class) { tasks.test { exclude("**/Pnpm*Test*") - if (project.hasProperty("skipIT")) { - exclude("**/*_integTest*") - } else if (project.hasProperty("onlyIT")) { - include("**/*_integTest*") - } +} + +tasks.register("unitTests") { + exclude("**/*_integTest*") +} + +tasks.register("integrationTests") { + include("**/*_integTest*") } tasks.register("pnpmTests") {