Skip to content
Browse files

Add documentation to Pitest (#1073)

Note: Although at this point in time we're changing names to Kotest, this still refers to old code and thus the KotlinTest name was kept.
When we switch to Kotest we'll need to change all documentation to Kotest as well.

Closes #1072
  • Loading branch information...
Kerooker committed Nov 8, 2019
1 parent 214a51f commit e101d5f40b325d552baa5b9eeb4b15833380ab11
Showing with 40 additions and 0 deletions.
  1. +1 −0
  2. +29 −0 doc/
  3. +10 −0 doc/
@@ -148,6 +148,7 @@ This page gives you just a short overview of KotlinTest. There are many more fea
* Handle tricky scenarios such as System Environment with [extensions](doc/
* Use the [Spring extension](doc/ to automatically inject your spring test classes.
* Test [Arrow](doc/ data types with the Arrow extension.
* Make use of custom plugins for integrations with tools such as [Pitest](doc/
See [full documentation](doc/
@@ -0,0 +1,29 @@
## KotlinTest Plugins

Sometimes there's a need for special integration with some tools. These integrations are available at the `kotlintest-plugins` modules and they can be whatever it's necessary to integrate with a specific tool.

Sometimes this is available with less complex integrations, such as using [Listeners]( or [Extensions](, but in some cases this isn't possible, and thus plugins are necessary.

### Pitest

The Mutation Testing tool [Pitest]( is integrated via plugin with KotlinTest. After [configuring]( the Pitest extension, add the KotlinTest Plugin dependency to your dependencies as well:


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

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

This should set everything up, and running `./gradlew pitest` will generate reports in the way you configured.
@@ -1049,3 +1049,13 @@ Some others provides helpers to tricky System Testing situations, such as `Syste
We also provide a `Locale Extension`, for locale-dependent code, and `Timezone Extension` for timezone-dependent code.

Take a better look at all the extensions available in the [extensions-reference](


Sometimes it's not enough to use Extensions or Listeners to integrat with external systems or tools, and for this we use custom Plugins, available at `kotlintest-plugins` module.

Integrations such as `Pitest` require a more complex solution, and thus the plugins module was necessary.

For more information on plugins, take a look at the [plugins reference](

0 comments on commit e101d5f

Please sign in to comment.
You can’t perform that action at this time.