Cobertura.
Cobertura is a free Java tool that calculates the percentage of code accessed by tests. It can be used to identify which parts of your Java program are lacking test coverage. It is based on jcoverage..
Here is the list of declaration for cobertura. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>cobertura</groupId> <artifactId>cobertura</artifactId> <version>1.8</version> </dependency>
If you think this Maven repository POM file listing for cobertura is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Name:The GNU General Public License, Version 2
URL: http://www.gnu.org/licenses/gpl.txt.
The following packages are defined in the cobertura-1.8.jar
net.sourceforge.cobertura.ant net.sourceforge.cobertura.check net.sourceforge.cobertura.coveragedata net.sourceforge.cobertura.instrument net.sourceforge.cobertura.javancss net.sourceforge.cobertura.merge net.sourceforge.cobertura.reporting net.sourceforge.cobertura.reporting.html net.sourceforge.cobertura.reporting.html.files net.sourceforge.cobertura.reporting.xml net.sourceforge.cobertura.util
Here is the content of the POM file.
<project> <modelVersion>4.0.0</modelVersion> <groupId>cobertura</groupId> <artifactId>cobertura</artifactId> <version>1.8</version> <name>Cobertura</name> <description> Cobertura is a free Java tool that calculates the percentage of code accessed by tests. It can be used to identify which parts of your Java program are lacking test coverage. It is based on jcoverage. </description> <url>http://cobertura.sourceforge.net</url> <licenses> <license> <name>The GNU General Public License, Version 2</name> <url>http://www.gnu.org/licenses/gpl.txt</url> <distribution>repo</distribution> </license> </licenses> <dependencies> <dependency> <groupId>oro</groupId> <artifactId>oro</artifactId> <version>2.0.8</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>2.2.1</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.9</version> </dependency> </dependencies> </project>