Sometimes there's a need for special integration with some tools that are more complex In this situation plugins are necessary.


The Mutation Testing tool Pitest is integrated via a kotest plugin. After configuring the Pitest extension, add the kotest-plugins-pitest module to your dependencies as well:


After doing that, tell Pitest that we're going to use Kotest as a testPlugin:

// Assuming that you have already configured the Gradle/Maven extension
configure<PitestPluginExtension> {
testPlugin.set("Kotest") // <-- Telling Pitest that we're using Kotest

This should set everything up, and running ./gradlew pitest will generate reports in the way you configured.