CI 管道中的 Kotlin 代码覆盖率 [英] Kotlin code coverage in CI pipeline

查看:20
本文介绍了CI 管道中的 Kotlin 代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有兴趣找到在 CI 管道中运行良好的 kotlin 代码覆盖工具.使用 intellij 内置的代码覆盖率,但不能在 CI 中使用它.谢谢

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

推荐答案

Jacoco 插件可以很好地覆盖 Kotlin 代码.像配置 Java 一样配置 Jacoco.

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

这篇关于CI 管道中的 Kotlin 代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆