衡量Kotlin代码的测试覆盖率? [英] Measure test coverage for Kotlin code?

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

问题描述

有什么方法可以衡量Kotlin代码的测试覆盖率吗? Jacoco给出了错误的结果,因为无法确定自动生成的代码.还有其他解决方案吗?

Is there any way to measure test coverage for Kotlin code? Jacoco gives wrong results because can not determine autogenerated code. Is there any other solution?

推荐答案

如果您使用的是IntelliJ IDEA,则此链接将为您提供帮助: https://www.jetbrains.com/help/idea/configuration-code-coverage-measurement.html

If you are using IntelliJ IDEA,this link will be helpful for you: https://www.jetbrains.com/help/idea/configuring-code-coverage-measurement.html

否则,您可以检查'Sonarqube',它是针对您的目的的良好工具,易于使用且拥有良好的社区.

else you can check 'Sonarqube', it is good tools for your purpose and it is easy to use and have a good community.

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

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