In standard Gradle you can do:
test {
useJUnitPlatform {
includeTags 'fast'
excludeTags 'slow'
}
}
I haven't been able to convert it into Kotlin's Gradle DSL
CodePudding user response:
Example syntax for tagging tests is available in the docs here.
// build.gradle.kts
tasks.test {
useJUnitPlatform {
includeTags("fast")
excludeTags("slow")
}
}