New Cobertura Feature for NetBeans RCP Applications on Maven

Yesterday @petrjiricka mentioned the new Cobertura support for Maven projects in NetBeans IDE. So I tried it out today, using a NetBeans IDE 7.0 development build from 6 December 2010.

Once you have specified the reporting tags for Maven-Cobertura in the module where your tests are found, or for the whole application, you get a new menu item on the level (either application-level or module-level) on the right-click popup menu of the project in the Projects window. Then you can generate views like this:

From the above list of classes, you can jump into the source code, and see what has / has not been covered in the test:

So this feature also applies to NetBeans Platform applications created on Maven.

Comments:

Awesome! I've been wanting such a feature! I'll have to switch my Maven project from using EMMA to Cobertura though. I chose EMMA because sometimes it provides more detailed information to understand what it's complaining about so I can fix it. I've had times when Cobertura isn't very clear about something.

Posted by Ryan de Laplante on December 06, 2010 at 10:33 PM PST #

It's worth noting that you've been able to do this with an Ant-based NetBeans Platform project since 6.5 :-)

Posted by Tom Wheeler on December 07, 2010 at 01:35 AM PST #

Right (thanks to you, Tom!):

http://platform.netbeans.org/tutorials/nbm-test.html

Posted by Geertjan Wielenga on December 07, 2010 at 01:40 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
23
24
25
26
27
28
29
30
   
       
Today