test {
useJUnitPlatform()
}
doesn't seem to work in multiplatform projects.
However, this does:
jvmTest {
useJUnitPlatform()
}
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.