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

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. Features * 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.



  • cobertura = 1.9-11.jpp5
  • config(cobertura) = 1.9-11.jpp5


    Install Howto

    Fedora, CentOS, RHEL:
    1. Download the 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


    • /etc/ant.d/cobertura
    • /etc/maven/fragments/cobertura
    • /usr/bin/cobertura-check
    • /usr/bin/cobertura-instrument
    • /usr/bin/cobertura-merge
    • /usr/bin/cobertura-report
    • /usr/share/doc/cobertura-1.9/COPYING
    • /usr/share/doc/cobertura-1.9/COPYRIGHT
    • /usr/share/doc/cobertura-1.9/ChangeLog
    • /usr/share/doc/cobertura-1.9/README
    • /usr/share/java/cobertura-1.9.jar
    • /usr/share/java/cobertura.jar
    • /usr/share/maven2/poms/JPP-cobertura-runtime.pom
    • /usr/share/maven2/poms/JPP-cobertura.pom


    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.