Bernát Gábor
09/20/2024, 10:32 PMtesting {
suites {
getting(JvmTestSuite::class) {
targets {
all {
testTask.configure {
sources {
groovy {
// exclude the suite to not double run
exclude(listOf("**/JenkinsSuite.groovy"))
exclude {
logger.warn(it.name)
true
}
}
}
useJUnitPlatform()
finalizedBy(tasks.jacocoTestReport)
}
}
}
}
is what I have but does not work because:
❯ ./gradlew test
Configuration on demand is an incubating feature.
Calculating task graph as configuration cache cannot be reused because file 'build.gradle.kts' has changed.
> Task :compileTestGroovy FAILED
startup failed:
/Users/bgabor8/git/demo/test/main/JenkinsSuite.groovy: 6: unable to resolve class org.junit.platform.suite.api.Suite
@ line 6, column 1.
import org.junit.platform.suite.api.SuiteVampire
09/20/2024, 11:29 PMVampire
09/20/2024, 11:29 PMVampire
09/20/2024, 11:30 PMVampire
09/20/2024, 11:30 PMval test by before the getting and you probably get what you expect