Netbeans 6.7 Maven 代码覆盖率
如何配置 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我按照 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.