From 055cbe7e4b00116a40703e3933545fe78d33f28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Sat, 16 May 2026 19:23:58 +0200 Subject: [PATCH] upgrade: TestBalloon 1.0.0 compatibility --- gradle/libs.versions.toml | 2 +- gradle/templates/template-lib/build.gradle.kts | 4 +++- .../runner-testballoon/src/commonMain/kotlin/Suite.kt | 9 +++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ea3ab1f..75d8a1b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,7 +15,7 @@ kotest = "6.1.11" # https://github.com/kotest/kotest/releases kti = { strictly = "0.1.0" } # https://gitlab.com/opensavvy/groundwork/kotlin-test-initiative/-/releases -testBalloon = "0.8.4-K2.3.0" # https://github.com/infix-de/testBalloon/releases +testBalloon = "1.0.0-K2.3.0" # https://github.com/infix-de/testBalloon/releases [plugins] testBalloon = { id = "de.infix.testBalloon", version.ref = "testBalloon" } diff --git a/gradle/templates/template-lib/build.gradle.kts b/gradle/templates/template-lib/build.gradle.kts index 6328b28..ca06d75 100644 --- a/gradle/templates/template-lib/build.gradle.kts +++ b/gradle/templates/template-lib/build.gradle.kts @@ -54,7 +54,9 @@ kotlin { } sourceSets.commonTest.dependencies { - implementation(libsCommon.bundles.testBalloon) + implementation(libs.testBalloon) + implementation(libsCommon.kotlin.test) + implementation(projects.runners.runnerTestballoon) } } diff --git a/runners/runner-testballoon/src/commonMain/kotlin/Suite.kt b/runners/runner-testballoon/src/commonMain/kotlin/Suite.kt index 9f94ce2..81b0ae5 100644 --- a/runners/runner-testballoon/src/commonMain/kotlin/Suite.kt +++ b/runners/runner-testballoon/src/commonMain/kotlin/Suite.kt @@ -17,9 +17,9 @@ package opensavvy.prepared.runner.testballoon import de.infix.testBalloon.framework.core.* -import de.infix.testBalloon.framework.shared.TestDisplayName import de.infix.testBalloon.framework.shared.TestElementName import de.infix.testBalloon.framework.shared.TestRegistering +import de.infix.testBalloon.framework.shared.TestSuitePropertyName import opensavvy.prepared.suite.PreparedDslMarker import opensavvy.prepared.suite.SuiteDsl import opensavvy.prepared.suite.TestDsl @@ -44,12 +44,13 @@ fun TestSuite.withPrepared( @PreparedDslMarker @TestRegistering fun preparedSuite( - @TestElementName name: String = "", - @TestDisplayName displayName: String = name, + @TestElementName name: String? = null, balloonConfig: BalloonTestConfig = BalloonTestConfig, preparedConfig: TestConfig = TestConfig.Empty, + compartment: () -> TestCompartment = { TestCompartment.Default }, + @TestSuitePropertyName qualifiedPropertyName: String = "", content: SuiteDsl.() -> Unit, -) = testSuite(name, displayName, balloonConfig) { +) = testSuite(name, compartment, balloonConfig, qualifiedPropertyName) { withPrepared(preparedConfig) { content() } -- 2.51.2