napperley
02/17/2020, 2:29 AMnapperley
02/17/2020, 2:31 AMallTests - Runs the tests for all targets and create aggregated report
check - Runs all checks.
linuxX64Test - Executes Kotlin/Native unit tests for target linuxX64.
octylFractal
02/17/2020, 2:58 AMnapperley
02/17/2020, 3:52 AMkotlin.NotImplementedError
error keeps on occurring:
> Task :linuxX64Test FAILED
org.digieng.kmetrics.core.GaugeMetricTest.create text with name and value FAILED
kotlin.NotImplementedError
1 test completed, 1 failed
sean
02/18/2020, 5:08 PMlinux
portion isn't generating tests. But it has an option. Additionally I found I couldn't call allTests
, I need to call jvmTest
, jsTests
, etc. I think we would need to loop on the allTests task for configuration
tasks {
val jvmTest by getting(org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest::class) {
this.useJUnit()
this.reports.junitXml.isEnabled = true
}
val linuxX64Test by getting(org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest::class) {
reports.junitXml.apply {
isEnabled = true
}
}
}
napperley
02/18/2020, 8:05 PMsean
02/18/2020, 8:13 PMallTests
still exists. It just won't have the reporting elements present. This explicitly sets reporting on tasks, there's a similar syntax for js
. So if you run allTests
it doesn't provide xml reporting, just the html
reports.
I would think it's something like
for task in allTests
if task.name == jvmTests -> junitXML = true
if task.name == jsTests -> cobertura = true
if task.name == linuxX64Test -> junitXML = true
But I couldn't determine how to loop allTests
.napperley
02/18/2020, 8:14 PMsean
02/18/2020, 8:16 PM