I have a Kotlin project and when I run my JUnit tests, I can\'t see tests execution result in IntelliJ and get this message instead:
test events were not
For those who still might have this problem using IntelliJ & Kotlin:
Add the following lines to the build.grade.kts. I hope it helps some of you.
dependencies {
testImplementation(kotlin("test-junit5"))
testImplementation(platform("org.junit:junit-bom:5.7.0"))
testImplementation("org.junit.jupiter:junit-jupiter")}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
PS: without adding the "task." before test{...} I was getting the following error!
the function invoke() is not found