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

查看:102
本文介绍了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代码.将Jacoco配置为与Java相同.

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天全站免登陆