Kotlin multi-platfrom - JUnit XML report not generated

I have a Kotlin multi-platform project using gradle with the Kotlin dsl. I would like to integrate Junit XML test reports with Jenkins. But, I cannot get the JUnit XML test reports to generate. The HTML test reports do not get generated.
Even disabling the HTML reports has no impact.
Any suggestions on how to configured the test report output with a multi-platform project? I do see the XML reports getting generated with a non multi-platform project.

plugins {
    kotlin("multiplatform") version "1.4.0"
    `maven-publish`
}
group = "com.example.myproject"
version = "1.0-SNAPSHOT"

val spek_version = "2.0.9"

repositories {
    mavenCentral()
}
kotlin {
    jvm {
        compilations.all {
            kotlinOptions.jvmTarget = "11"
        }
    }
    js {
        nodejs {}
    }
    sourceSets {
        val commonMain by getting
        val commonTest by getting {
            dependencies {
                implementation(kotlin("test-common"))
                implementation(kotlin("test-annotations-common"))
                implementation("org.spekframework.spek2:spek-dsl-metadata:$spek_version")
            }
        }
        val jvmMain by getting
        val jvmTest by getting {
            dependencies {
                implementation(kotlin("test-junit5"))

                implementation("org.spekframework.spek2:spek-dsl-jvm:$spek_version")
                implementation("org.spekframework.spek2:spek-runner-junit5:$spek_version")
            }
        }
        val jsMain by getting
        val jsTest by getting {
            dependencies {
                implementation(kotlin("test-js"))
                implementation("org.spekframework.spek2:spek-dsl-js:$spek_version")
            }
        }
    }
}

tasks {
    withType<Test> {
        useJUnitPlatform {
            includeEngines("spek2")
        }
        reports {
            junitXml.isEnabled = true
            html.isEnabled = false
        }
    }
}

Please see https://youtrack.jetbrains.com/issue/KT-32608 discussion