TommyLemon / APIAuto

☔ 敏捷开发最强大易用的接口工具,机器学习零代码测试、生成代码与静态检查、生成文档与光标悬浮注释,腾讯、华为、SHEIN、传音、工行等使用 ☔ The most advanced tool for HTTP API. Testing with machine learning, generating codes and static analysis, generating comments and floating hints. Used by Tencent, Huawei, SHEIN, TRANSSION, ICBC, etc.
http://apijson.cn/api
Apache License 2.0
1.94k stars 242 forks source link

请问UnitAuto能生成测试报告和代码测试覆盖率吗? #23

Open winner-huang opened 1 year ago

winner-huang commented 1 year ago

请问UnitAuto能生成标准的测试报告和代码测试覆盖率吗?

TommyLemon commented 1 year ago

自带测试报告和覆盖率统计 image

image

不过如果要生成 Jacoco 等主流的报告和覆盖率,目前需要改源码来实现

TommyLemon commented 1 year ago

@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

image