Kotlin code coverage in CI pipeline

2019-07-10 03:59发布

问题:

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

回答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