Hi everyone, I cannot get my kotest to be executed by Maven.
I have a setup with Maven, junit4, surefire plugin 3.0.x and JDK8. I added kotest dependencies
kotest-assertions-core-jvm
,
kotest-runner-junit4-jvm
and
kotest-assertions-core-jvm
(all version 5.5.5) but Maven does not execute my kotest: the test fails when running with IntelliJ yet
mvn test
says successful build. Also, I do not find a junit report file in target/surefire-reports.
What am I missing?
Thanks
Benoît Liessens
03/19/2023, 1:55 PM
Was able to fix my problem by adding
@RunWith(KotestTestRunner::class)
to the test class.
Is this the recommended approach with junit4?