From 742ef38f6a734f66078cbe43ef100d576fe7e5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Thu, 26 Feb 2026 22:25:29 +0100 Subject: [PATCH] test(templates): Improve the naming of the template tests --- .../src/commonTest/kotlin/HelloWorldKotest.kt | 10 +++++----- ...oonTest.kt => PlaygroundVerifyTestBalloonCompat.kt} | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) rename gradle/templates/template-lib/src/commonTest/kotlin/{HelloWorldTestBalloonTest.kt => PlaygroundVerifyTestBalloonCompat.kt} (61%) diff --git a/gradle/templates/template-app/src/commonTest/kotlin/HelloWorldKotest.kt b/gradle/templates/template-app/src/commonTest/kotlin/HelloWorldKotest.kt index eaf764c..071beae 100644 --- a/gradle/templates/template-app/src/commonTest/kotlin/HelloWorldKotest.kt +++ b/gradle/templates/template-app/src/commonTest/kotlin/HelloWorldKotest.kt @@ -3,21 +3,21 @@ package opensavvy.playground.core import io.kotest.core.spec.style.FunSpec import opensavvy.prepared.runner.kotest.PreparedSpec -class HelloWorldKotestTest : PreparedSpec({ +class PlaygroundVerifyKotestAndPreparedCompat : PreparedSpec({ - test("Hello world!") { + test("Simplest possible test") { @Suppress("SimplifyBooleanWithConstants") // The compiler knows this test will always succeed check("Hello World!" == message) } - test("Yay • \u2606\u2606\u2606\u2606 Unicode!") { + test("Verify that unicode is supported in test names: \u2606\u2606\u2606\u2606") { // This test verifies that our CI is able to handle Unicode characters in test names. // See https://gitlab.com/gitlab-org/gitlab/-/issues/580885 } }) -class FooTest : FunSpec({ - test("test") { +class PlaygroundVerifyKotestCompat : FunSpec({ + test("Simplest possible test") { check(true) } }) diff --git a/gradle/templates/template-lib/src/commonTest/kotlin/HelloWorldTestBalloonTest.kt b/gradle/templates/template-lib/src/commonTest/kotlin/PlaygroundVerifyTestBalloonCompat.kt similarity index 61% rename from gradle/templates/template-lib/src/commonTest/kotlin/HelloWorldTestBalloonTest.kt rename to gradle/templates/template-lib/src/commonTest/kotlin/PlaygroundVerifyTestBalloonCompat.kt index e6a9052..8e60732 100644 --- a/gradle/templates/template-lib/src/commonTest/kotlin/HelloWorldTestBalloonTest.kt +++ b/gradle/templates/template-lib/src/commonTest/kotlin/PlaygroundVerifyTestBalloonCompat.kt @@ -2,15 +2,15 @@ package opensavvy.playground.core import opensavvy.prepared.runner.testballoon.preparedSuite -val HelloWorldTestBalloonTest by preparedSuite { +val PlaygroundVerifyTestBalloonCompat by preparedSuite { - test("Hello world!") { + test("Simplest possible test") { @Suppress("SimplifyBooleanWithConstants") // The compiler knows this test will always succeed check("Hello World!" == message) } - suite("Nested suite with Unicode \u2606") { - test("Yay • \u2606\u2606\u2606\u2606 Unicode!") { + suite("Verify that unicode is supported in suite names: \u2606") { + test("Verify that unicode is supported in test names: \u2606\u2606\u2606\u2606") { // This test verifies that our CI is able to handle Unicode characters in test names. // See https://gitlab.com/gitlab-org/gitlab/-/issues/580885 } -- 2.51.2