Evgeny Mandrikov | KotlinConf 2024, May 22–24, Copenhagen
all speakers

Evgeny Mandrikov

Evgeny Mandrikov

Software Gardener, Language Team Technical Leader @SonarSource

Evgeny is a contributor to various open source projects, including OpenJDK, and a speaker at international conferences and JUGs. He is also one of the project leads of widely adopted code coverage library for Java and Kotlin - JaCoCo, and the award-winning EclEmma project at the Eclipse Foundation that integrates JaCoCo into Eclipse. In his day job at Sonar he develops SonarQube’s static source code analysis for languages such as Java, Kotlin, C, and C++.

The state of code coverage for Kotlin

Nowadays it’s not anymore a question whether we want to write tests or not. Writing unit tests is not “nice-to-have” it’s an essential part of our everyday job. While that’s already a great step forward, how can we be sure our tests are actually testing something. To check this we all use code coverage tools.

In this presentation you will learn how code coverage for Kotlin works, which tools we can use and what are the challenges and limitations of various approaches. You will learn the difference between line, instruction and condition coverage and how to read and interpret coverage results in Kotlin.

In the last part of this presentation we will cover the future for Kotlin Code Coverage, what is missing and what can be improved in the future.