Skip to content

WIP Design test suites for jvmApplication - #72

Draft
hfhbd wants to merge 1 commit into
Kotlin:mainfrom
hfhbd:design-test-suites
Draft

WIP Design test suites for jvmApplication#72
hfhbd wants to merge 1 commit into
Kotlin:mainfrom
hfhbd:design-test-suites

Conversation

@hfhbd

@hfhbd hfhbd commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This is just a draft, there is no jvm-test-suite logic yet, but I can implement/copy it.

But what do you think about the design?

@hfhbd
hfhbd marked this pull request as draft July 7, 2026 21:19
@hfhbd hfhbd changed the title WIP design WIP Design test suites for jvmApplication Jul 7, 2026
@hfhbd

hfhbd commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

I would love to see some kind of type safe accessor gradle/gradle#38420 and gradle/gradle#36486 to get this:

jvmApplication {
    mainClass = "org.example.SerializationKt"

    testing {
        test {
            useJUnitPlatform {
                jUnitVersion = "6.0.0"
            }
            // useKotlinTest {
            //   kotlinVersion = "2.3.20"
            // }
           dependencies {
                implementation(platform("org.junit:junit-bom:5.14.3"))
                implementation("org.junit.jupiter:junit-jupiter")
                runtimeOnly("org.junit.platform:junit-platform-launcher")
            }
        }
        kotlinTestSuite("integrationTest") {
            useJUnitPlatform {
                jUnitVersion = "6.0.0"
            }
            // useKotlinTest {
            //   kotlinVersion = "2.3.20"
            // }
           dependencies {
                implementation(platform("org.junit:junit-bom:5.14.3"))
                implementation("org.junit.jupiter:junit-jupiter")
                runtimeOnly("org.junit.platform:junit-platform-launcher")
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant