How can I configure netbeans 6.7 to enable code coverage for maven2 projects?
如何配置netbeans 6.7以启用maven2项目的代码覆盖?
I tried tinkering with the following http://sharebear.co.uk/blog/2009/01/21/code-coverage-maven-projects-netbeans/ though had no luck
我尝试修改以下http://sharebear.co.uk/blog/2009/01/21/code-coverage-maven-projects-netbeans/虽然没有运气
Thanks
1 个解决方案
#1
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.
我按照http://sharebear.co.uk/blog/2009/01/21/code-coverage-maven-projects-netbeans/上的指南进行操作,使用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.
我犯的一个错误是创建了第一个虚拟单元测试用例,只有一个断言(true),而不是访问任何已检测的代码。这没有产生coverage.ec文件,这让我难以忍受了一段时间。
#1
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.
我按照http://sharebear.co.uk/blog/2009/01/21/code-coverage-maven-projects-netbeans/上的指南进行操作,使用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.
我犯的一个错误是创建了第一个虚拟单元测试用例,只有一个断言(true),而不是访问任何已检测的代码。这没有产生coverage.ec文件,这让我难以忍受了一段时间。