Kotlin Test Coverage
问题 Does anyone know if a good test coverage tool (preferably Gradle plugin) exists for Kotlin? I've looked into JaCoCo a bit, but it doesn't seem to reliably support Kotlin. 回答1: As requested, here is an example build.gradle that uses Kotlin, and incorporates both Jacoco and Sonarqube integration, produces a jar and sources, and ties in Detekt for static analysis. I had to manually add a couple things as my work build has jacoco applied by an in-house plugin. plugins { id 'org.jetbrains.kotlin