is there a better way to configure all KMP test ta...
# gradle
e
is there a better way to configure all KMP test tasks? at the moment I have
Copy code
kotlin {
    targets.withType<KotlinTargetWithTests<*, KotlinTargetTestRun<*>>>().configureEach {
        testRuns.withType<KotlinTaskTestRun<*, *>>().configureEach {
            executionTask.configure {
                testLogging.setExceptionFormat("FULL")
            }
        }
    }
}
which uses a type that isn't in
kotlin-gradle-plugin-api
(
KotlinTaskTestRun
is in
kotlin-gradle-plugin
)
v
And you can't directly use
tasks.withType
? :-/
e
that would potentially affect tests registered by other plugins
t
I would propose to open a new Kotlin issue describing your use-case for this API. We will use it as input once we will try to improve it