X

Geertjan's Blog

  • December 7, 2010

New Cobertura Feature for NetBeans RCP Applications on Maven

Geertjan Wielenga
Product Manager
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.

Join the discussion

Comments ( 3 )
  • Ryan de Laplante Tuesday, December 7, 2010

    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.


  • Tom Wheeler Tuesday, December 7, 2010

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


  • Geertjan Wielenga Tuesday, December 7, 2010
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha
Oracle

Integrated Cloud Applications & Platform Services