I am experimenting with Kotest Gradle plugin and t...
# kotest
m
I am experimenting with Kotest Gradle plugin and the framework engine instead of JUnit runner. I have a simple MP build with JVM target. When I run
./gradlew tasks
the returned list includes:
Copy code
jvmKotest - Runs kotest tests
jvmTest - Runs the tests of the test test run.
kotest - Runs kotest tests
But running
./gradlew jvmTest
or, more generally
/.gradlew test
fails with message that includes:
Copy code
Execution failed for task ':jvmTest'.
> There are test sources present and no filters are applied, but the test task did not discover any tests to execute.
I expected the
test
and
check
tasks to include the
jvmKotest
task automatically but they don’t. (Perhaps even the
jvmTest
task as well.) Did I misconfigure Gradle in some way? Is there a configuration like this?
Copy code
tasks.withType<Test>() {
    useKotestEngine()
}