
The setup to add the plugin to you project can hardly be simpler if you use gradle. Let's give Kover a spin and see what we can do with it! For this experiment, I'll be using the Kotlin flavor of the very famous Spring Pet Clinic. Well Kover is fully compatible with the JaCoCo format so you can keep making full use of those, and even couple them in case you have multiple projects in different JVM languages.

If you're a JVM developer, you're probably used to those HTML/XML report files so you usually feed into a system like SonarQube or CodeCov to track metrics over time. It is still in incubator phase, but we'll see here that it already has quite some value for your Kotlin projects! Kover is a Gradle plugin for native Kotlin code coverage. Today, we're looking into one of them : Kover. You can see my experiment over here.Ī couple weeks back, the version 1.6.0 of Kotlin was officially released! The release was packed with new language features, but also some very nice tooling and ecosystem goodies. It's still in incubator phase but I took it for a spin and it is already very useful as part of local or CI workflows! In this article I go through the setup and some of my favourite goodies of the tool.

TL DR : Kover is a code coverage tool for Kotlin.
