Open winner-huang opened 1 year ago
自带测试报告和覆盖率统计
不过如果要生成 Jacoco 等主流的报告和覆盖率,目前需要改源码来实现
@winner-huang 不用改源码了,使用 Jacoco on-the-fly 模式即可。
5.如何统计行覆盖率/分支覆盖率? Java/Kotlin 可以用 Jacoco(on-the-fly 运行时动态插桩模式) https://www.jacoco.org/jacoco/trunk/doc/agent.html https://www.jacoco.org/jacoco/trunk/doc/cli.html
还可以搜索并参考 "Jacoco" 相关文章,例如: Java 覆盖率 Jacoco 插桩的不同形式总结和踩坑记录 https://testerhome.com/topics/20632
https://github.com/TommyLemon/UnitAuto#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98
请问UnitAuto能生成标准的测试报告和代码测试覆盖率吗?