'Kotlin code coverage in CI pipeline
Interested to find code coverage tools for kotlin that work well in a CI pipeline. use intellij built in code coverage but cant use this in CI. Thanks
Solution 1:[1]
The Jacoco plugin works fine for coverage of Kotlin code. Configure Jacoco the same as you would for Java.
https://docs.gradle.org/current/userguide/jacoco_plugin.html
Solution 2:[2]
You can use the new kotlinx-kover Gradle plugin compatible with JaCoCo and IntelliJ.
plugins {
id("org.jetbrains.kotlinx.kover") version "0.5.0"
}
Once applied, the plugin can be used out of the box without additional configuration.
Watch its YouTube announcement video and also track its roadmap from this youtrack issue.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Mikezx6r |
Solution 2 |