Hi everyone! In my gradle plugin, I'm trying to re...
# gradle
d
Hi everyone! In my gradle plugin, I'm trying to replace the test tasks created for all targets by the Kotlin Multiplatform with my own implementations of AbstractTestTask/TestExecutionSpec/TestExecutor. Does anyone can hint me on how I can inform the Kotlin Gradle plugin to use my own Test tasks? Thanks in advance.
v
You could for example make the standard tasks depend on your own tasks and set
onlyIf { false }
on the standard tasks.
d
I see. I'll try doing that now, but I hoped for some extension points in the Kotlin Multiplatform Gradle plugin...
v
I don't know the KMP plugin, but I doubt there is anything. Usually you configure existing tasks to your liking and not replace tasks with own tasks. But I might be wrong of course.
d
Well, to be precise, I hoped for something similar to `Test`'s
useTestFramework(...)
, but for Kotlin Multiplatform Gradle plugin...
t
please open a new issue with your use-case - why you need to replace MPP test tasks