Clover - 无需自动化测试即可获得覆盖范围
我目前正在探索在项目中使用的各种代码覆盖率工具并入围 三叶草、艾玛和科伯特拉中的三叶草。 (我的组织已准备好支付三叶草的费用,它很好)
但我们没有自动化测试。所有测试都是手动的,我们需要使用检测代码在运行时生成结果。
clover 的 wiki 的初始行说
代码覆盖率是自动化覆盖的代码的百分比 测试。
Clover 可以收集非自动化测试的覆盖率吗?即要求是我在编译时检测代码并在实际运行代码时获取覆盖率报告。 谷歌搜索了很多,但找不到最合适的答案。
如果 clover 不支持,是否有其他方法可以实现这一目标
I am currently exploring various code coverage tools for use in project and short listed on
clover amongst clover, Emma and cobertura. ( My org is ready to pay for clover and its nice )
But we donot have automated tests. all tests are manual and we need results to be generated run time using instrumented code.
clover's wiki's inital lines say
Code coverage is the percentage of code which is covered by automated
tests.
Can clover collect coverage on non-automated tests ? i.e the requirement is i instrument code at compile time and get coverage report when i actually run the code.
Googled much but could not find most appropriate answer.
Are there alternatives to achieve that if clover does not support it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
覆盖率工具的想法是检测应用程序代码,以便在运行时收集统计数据,并最终写入报告中。应用程序代码是通过自动测试还是通过手动测试运行并不重要。它将与手动测试一起使用,但当然会更长。
The idea of coverage tools is to instrument the application code so that when it's run, statistics are collected, and finally written into reports. Wether the application code is run by automated tests or by manual tests doesn't matter. It will work with manual tests, but be of course much longer.
Clover 网站文档中有一些手动步骤。也许使用这个我们可以实现......但不确定确切的最佳方法来做到这一点。
There are manual steps which clover website documents. probably using this we can achieve.. but not sure of exact optimal way to do this.