Unit Tests Code Coverage Plugin - plugin detail
The Unit Tests Code Coverage plugin is a NetBeans 6.0 / 5.0 (5.5, 5.5.1) module which displays the unit tests code coverage in the NetBeans java sources editor.
Download size: N/A
Last Update: 2010-05-11
What's new in this version
Verifications for NetBeans versions
Plugin is not subject to any verification
The functionality provided by the plugin helps to visually (and quickly) identify the
portions of java code with low coverage and helps in targeted tests development. The plugin provides the following features:
- Java sources coloring according to the coverage information from the latest unit tests execution
- Automated java code markup updated after running unit tests or reopening file
- Code coverage markup info displayed at the java editor sidebar
Currently Java Application, Java Library, Java Project with Existing Sources and NetBeans module projects
How to use
The module must be enabled for each project by invoking the Coverage | Activate Coverage Collection action
from the project node's context menu. Then, as unit tests are run, the module will update the code coverage data
and markup the editor's lines accordingly. The lines which are fully covered by unit tests are
annotated with green color in java editor and the line covered partially are annotated in yellow. The colors
can be modified in Tools | Options | Fonts & Colors | Annotations.
More information is available in online tutorial
[ You have to be logged in to be able to comment. ]
Web Project Code Coverage : no (see the plugin description / introduction)
Unfortunately, no :
"Currently Java Application, Java Library, Java Project with Existing Sources and NetBeans module projects are supported."
Posted by ent38 on Jul 20, 2011
Web Project Code Coverage
I would be obliged to know if it is possible to use this plugin for code coverage of web services development netbeans project.
Posted by Tamim on Jul 18, 2011
Re, add UC
to add the Update Centers and install the Code Coverage Plugin :
- go to "Tools" / "Plugins"
- go to the "Settings" tab
- clic "Add"
--- Name = Dynamic Development UC
--- URL = http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz
- clic "OK"
- repeat that for the Static Development UC
- go to the "Available Plugins" tab and clic "Reload Catalog"
- in the list of available plugins, you'll find the "Code Coverage Plugin" (you can type "code coverage plugin" in the search field)
- select the plugin and install it
- have fun :D
The "old" version works with NetBeans 6.0 to 6.9 only, but is not compatible with NB 7. I've updated its dependencies to make it compatible with NB 7 : http://plugins.netbeans.org/plugin/38945 .
If you experience too many problems with Update Centers, I'ill try to upload the compiled plugin for NB 6.0/6.9 in a few days.
 go to http://plugins.netbeans.org/plugin/38945/ , I've included the plugin compiled with NB6.9.1.
Posted by ent38 on May 28, 2011
thanks ent38 for another
thanks ,but I'm sorry, i'm a new comer , If you have a java Coverage Plugin for NetBeans 6.0 to 6.9, can you mail it to me ? thans very much
my mail: email@example.com
Add UC and check for plugin
you can add some Update Centers to NetBeans :
Dynamic Development UC :
Static Development UC :
Check for available plugins. After that, you may find the Code Coverage Plugin for NetBeans 6.0 to 6.9.
Posted by ent38 on May 27, 2011
How can i get the plugin
I'm sorry,but how can i get the plugin,i cann't find a link to download it,thank you
How to configure unit test code coverage plug-in
Very nice tool. Simple to use, and the highlighting of tested lines makes it very easy to see where more testing is needed.
Are there any user-configurable settings for the unit test code coverage plug-in? For example, defining filters to include or exclude certain packages, etc.
Where can I get source code
I'd like to fix this to work with Maven....
Thanks - works well with J2SE but not at all with J2ME.
For J2ME the Coverage Project menu item is greyed out. Getting this working for J2ME projects would be very much appreciated.
Thanks - Very useful
Would like highlight to include continuation lines as well.
It would be great if this supported web projects. I like the functionality in normal projects.
I second that...
It is very disappointing not to see this plugin work with maven based projects. Unfortunately all my projects are maven projects, which makes this plugin useless for me.... Too bad.... Guess I can uninstall the plugin now... :(
Does not work with Maven
Just a heads up, don't expect this to work if you manage your project with maven. Sad
i think all developers really need it.
Posted by azizi on Feb 22, 2008