I've got the following configuration in my build.gradle.kts
:
tasks.withType<Test>().configureEach {
testLogging {
events = setOf(PASSED, SKIPPED, FAILED)
}
}
My Kotest tests are similar to these:
class MyTests : StringSpec({
"should fail" {
1 shouldBe 2
}
"should skip".config(enabled = false) {}
"should pass" {
1 shouldBe 1
}
})
However when I run ./gradlew test --info
, I can see in the output the first two tests reported as FAILED and SKIPPED accordingly, but the last one is not reported at all, while I'd expect it to be so as PASSED.
Am I doing something wrong or is it a missing feature?
Please find the complete example here.