Netbeans 6.7 Maven 代码覆盖率

发布于 2024-07-27 22:30:02 字数 279 浏览 4 评论 0原文

如何配置 netbeans 6.7 以启用 maven2 项目的代码覆盖率?

我尝试修改以下 http:// /sharebear.co.uk/blog/2009/01/21/code-coverage-maven-projects-netbeans/ 虽然没有运气

谢谢

How can I configure netbeans 6.7 to enable code coverage for maven2 projects?

I tried tinkering with the following http://sharebear.co.uk/blog/2009/01/21/code-coverage-maven-projects-netbeans/ though had no luck

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

听不够的曲调 2024-08-03 22:30:02

我按照 http:// sharebear.co.uk/blog/2009/01/21/code-coverage-maven-projects-netbeans/ 它确实对我有用,使用 Netbeans 6.8。

我犯的一个错误是创建第一个仅包含断言(true)的虚拟单元测试用例,而不访问任何已检测的代码。 这没有产生coverage.ec 文件,这让我困惑了一段时间。

I followed the guide at http://sharebear.co.uk/blog/2009/01/21/code-coverage-maven-projects-netbeans/ and it did work for me, using Netbeans 6.8.

One mistake I made was to create a first dummy unit test case with only an assert(true), and not accessing any of the instrumented code. This produced no coverage.ec file, which got me stumped for a while.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文