joshjdevl
joshjdevl

Reputation: 7212

netbeans 6.7 maven code coverage

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

Upvotes: 1

Views: 1064

Answers (1)

Gert-Jan Bartelds
Gert-Jan Bartelds

Reputation: 11

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.

Upvotes: 1

Related Questions