From d87d81336765405fce33128a2b23a5eefec9ced1 Mon Sep 17 00:00:00 2001 From: Ollie Kennedy Date: Fri, 4 Apr 2025 12:35:29 +0100 Subject: [PATCH] add kotlin gradle task to run texttest `./gradlew -q text` now works Co-authored-by: Marco Garofalo --- Kotlin/build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Kotlin/build.gradle.kts b/Kotlin/build.gradle.kts index 4d392304..618096d1 100644 --- a/Kotlin/build.gradle.kts +++ b/Kotlin/build.gradle.kts @@ -24,6 +24,14 @@ tasks.test { } } +tasks.register("texttest") { + description = "Allow you to run text-based approval tests with texttest" + group = JavaBasePlugin.BUILD_TASK_NAME + mainClass.set("com.gildedrose.TexttestFixtureKt") + classpath = sourceSets["test"].runtimeClasspath + args("30") +} + // config JVM target to 1.8 for kotlin compilation tasks tasks.withType().configureEach { kotlinOptions.jvmTarget = "1.8"