Kotest: Document usage for Kotlin/JVM in Multiplatform projects

Created on 3 Dec 2019  路  3Comments  路  Source: kotest/kotest

test {
  useJUnitPlatform()
}

doesn't seem to work in multiplatform projects.
However, this does:

jvmTest {
  useJUnitPlatform()
}
enhancement wontfix documentation

All 3 comments

In kotlin dsl you would need this:

tasks.named<Test>("jvmTest") {
   useJUnitPlatform()
   testLogging {
      showExceptions = true
      showStandardStreams = true
      events = setOf(org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED, org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED)
      exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
   }
}

KT 4.0 will be fully MPP ready.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings