-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
Description
I wonder if plugin supports Gradle testing suites? I have tests defined as follows:
testing {
suites {
withType<JvmTestSuite> {
useJUnitJupiter()
dependencies {
implementation(project())
implementation(libs.springBootStarterTest)
implementation(libs.kotestAssertions)
}
}
val test by getting(JvmTestSuite::class) {
testType = TestSuiteType.UNIT_TEST
useJUnitJupiter()
dependencies {
implementation(libs.kotestAssertions)
}
sources {
kotlin {
setSrcDirs(listOf("src/test/kotlin"))
}
}
}
val integrationTest by registering(JvmTestSuite::class) {
testType = TestSuiteType.INTEGRATION_TEST
dependencies {
implementation(libs.springBootDevtools)
implementation(libs.springBootTestcontainers)
implementation(libs.testcontainersJupiter)
implementation(libs.testcontainersMongodb)
implementation(libs.testcontainersRedis)
}
sources {
kotlin {
setSrcDirs(listOf("src/integrationTest/kotlin"))
}
}
}
val acceptanceTest by registering(JvmTestSuite::class) {
testType = TestSuiteType.FUNCTIONAL_TEST
dependencies {
implementation(libs.springBootDevtools)
}
sources {
kotlin {
setSrcDirs(listOf("src/acceptanceTest/kotlin"))
}
}
}
}
}
Reactions are currently unavailable