cobertura - Free Java tool that calculates the percentage of code accessed by tests

Property Value
Distribution RPM Universal
Repository JPackage 5.0 all
Package name cobertura
Package version 1.9
Package release 11.jpp5
Package architecture noarch
Package type rpm
Installed size 217.48 KB
Download size 191.91 KB
Official Mirror
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.
* Can be executed from ant or from the command line.
* Instruments Java bytecode after it has been compiled.
* Can generate reports in HTML or XML.
* Shows percent of lines coveraged and branches coveraged for each
class, package, and for the overall project.
* Shows the McCabe cyclomatic code complexity of each class, and
the average cyclomatic code complexity for each package, and for
the overall product.
* Can sort HTML results by class name, percent of lines covered,
percent of branches covered, etc. And can sort in ascending or
decending order.
NOTE: Due to asm version conflicts, if you use Cobertura as an ant
task you MUST add manually a classpath element
<classpath location="/usr/share/java/asm2/asm2.jar"/>
to all Cobertura tasks requiring bytecode manipulation.


Package Version Architecture Repository
cobertura- noarch JPackage 6.0
cobertura - - -


Name Value
ant >= 1.6.5
asm2 -
config(cobertura) = 1.9-11.jpp5
jakarta-oro -
java >= 1.5.0
jpackage-utils >= 1.7.3
junit -
log4j -


Name Value
cobertura = 1.9-11.jpp5
config(cobertura) = 1.9-11.jpp5


Type URL
Binary Package cobertura-1.9-11.jpp5.noarch.rpm
Source Package cobertura-1.9-11.jpp5.src.rpm

Install Howto

Fedora, CentOS, RHEL:
  1. Download latest jpackage-release rpm from
  2. Install jpackage-release rpm:
    # rpm -Uvh jpackage-release*rpm
  3. Install cobertura rpm package:
    # yum install cobertura
  1. Add the JPackage 5.0 repository:
    # zypper addrepo jpackage-5.0
  2. Install cobertura rpm package:
    # zypper install cobertura
Mandriva, Mageia:
  1. Add the JPackage 5.0 repository:
    # urpmi.addmedia jpackage-5.0 with
  2. Update packages list:
    # urpmi.update -a
  3. Install cobertura rpm package:
    # urpmi cobertura




2009-04-03 - Ralph Apel <> 0:1.9-11.jpp5
- Fix and extend depmap frag
2008-11-05 - David Walluck <> 0:1.9-10
- build for JPackage 5
- bump release to supersede Mandriva release number
2007-07-20 - Ralph Apel <r.apel at> 0:1.9-2jpp
- Add cobertura-runtime pseudo pom
2007-07-20 - Ralph Apel <r.apel at> 0:1.9-1jpp
- Upgrade to 1.9
- javancss not needed any more, (B)R dropped
- gnu-getopt not needed any more, (B)R dropped
- Add scripts
- Add depmap frag
2007-05-14 - Ralph Apel <r.apel at> 0:1.7-2jpp
- Make Vendor, Distribution based on macro
- Fix aot build
2006-09-21 - Ralph Apel <r.apel at> 0:1.7-1jpp
- Upgrade to 1.7
- Add post/postun Requires for javadoc
- Add gcj_support option
- Add pom
2006-06-07 - Fernando Nasser <> 0:1.2-3jpp
- First JPP 1.7 build
2005-03-17 - David Walluck <> 0:1.2-2jpp
- fix changelog entry
2005-03-17 - David Walluck <> 0:1.2-1jpp
- 1.2
- drop oro as java 1.4 classes are now used for regex
2005-03-15 - Sebastiano Vigna <vigna at> 0:1.1-3jpp
- Added blurb about required classpath ant element.

See Also

Package Description
cobertura-javadoc-1.9-11.jpp5.noarch.rpm Javadoc for cobertura
codehaus-stax11-1.1.2-1.jpp5.noarch.rpm Streaming API for XML
codehaus-stax11-api-1.1.2-1.jpp5.noarch.rpm The StAX API
codehaus-stax11-javadoc-1.1.2-1.jpp5.noarch.rpm Javadoc for codehaus-stax11
codehaus-stax11-repolib-1.1.2-1.jpp5.noarch.rpm Artifacts to be uploaded to a repository library
colt-1.2.0-4.jpp5.noarch.rpm Open-source libraries for high-performance scientific and technical computing
colt-hep-1.2.0-4.jpp5.noarch.rpm Compact, extensible, modular and performant histogramming functionality
colt-hep-javadoc-1.2.0-4.jpp5.noarch.rpm Javadoc for colt-hep
colt-javadoc-1.2.0-4.jpp5.noarch.rpm Javadoc for colt
cometd-dojox-examples-1.0-0.b4.1.jpp5.noarch.rpm Cometd DojoX Examples
cometd-java-api-1.0-0.b4.1.jpp5.noarch.rpm API for cometd-java
cometd-java-javadoc-1.0-0.b4.1.jpp5.noarch.rpm Javadoc for cometd-java
commons-build-plugin-1.1-1.jpp5.noarch.rpm Apache Commons Build Plugin
concurrent-1.3.4-9.jpp5.noarch.rpm Utility classes for concurrent Java programming
concurrent-javadoc-1.3.4-9.jpp5.noarch.rpm Javadoc for concurrent