Cobertura code coverage

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.

Categories

Categories

Net Cobertura Application Testing & Monitoring Code Coverage
GroupId

GroupId

net.sourceforge.cobertura
ArtifactId

ArtifactId

cobertura
Last Version

Last Version

2.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Cobertura code coverage
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.
Project URL

Project URL

http://cobertura.sourceforge.net
Source Code Management

Source Code Management

http://github.com/cobertura/cobertura

Download cobertura

How to add to project

<!-- https://jarcasting.com/artifacts/net.sourceforge.cobertura/cobertura/ -->
<dependency>
    <groupId>net.sourceforge.cobertura</groupId>
    <artifactId>cobertura</artifactId>
    <version>2.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/net.sourceforge.cobertura/cobertura/
implementation 'net.sourceforge.cobertura:cobertura:2.1.1'
// https://jarcasting.com/artifacts/net.sourceforge.cobertura/cobertura/
implementation ("net.sourceforge.cobertura:cobertura:2.1.1")
'net.sourceforge.cobertura:cobertura:jar:2.1.1'
<dependency org="net.sourceforge.cobertura" name="cobertura" rev="2.1.1">
  <artifact name="cobertura" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.sourceforge.cobertura', module='cobertura', version='2.1.1')
)
libraryDependencies += "net.sourceforge.cobertura" % "cobertura" % "2.1.1"
[net.sourceforge.cobertura/cobertura "2.1.1"]

Dependencies

compile (16)

Group / Artifact Type Version
org.ow2.asm : asm jar 5.0.1
org.ow2.asm : asm-tree jar 5.0.1
org.ow2.asm : asm-commons jar 5.0.1
org.ow2.asm : asm-util jar 5.0.1
org.ow2.asm : asm-analysis jar 5.0.1
oro : oro jar 2.0.8
jaxen : jaxen jar 1.1.4
org.apache.ant : ant jar 1.8.3
org.apache.ant : ant-junit jar 1.8.3
org.mortbay.jetty : servlet-api-2.5 jar 6.1.14
org.mortbay.jetty : jetty jar 6.1.14
org.mortbay.jetty : jetty-util jar 6.1.14
org.slf4j : slf4j-api jar 1.7.5
ch.qos.logback : logback-classic jar 1.0.13
junit : junit jar 4.11
org.apache.commons : commons-lang3 jar 3.3.2

test (8)

Group / Artifact Type Version
xerces : xercesImpl jar 2.11.0
xalan : xalan jar 2.7.1
org.jdom : jdom jar 1.1.3
commons-io : commons-io jar 2.2
org.mortbay.jetty : jetty-servlet-tester jar 6.1.14
org.codehaus.groovy : groovy-all jar 1.6.9
net.java.dev.javacc : javacc jar 5.0
org.mockito : mockito-all jar 1.9.5

system (1)

Group / Artifact Type Version
com.sun » tools jar 0

Project Modules

There are no modules declared in this project.

COBERTURA

Build Status

ABOUT

Cobertura is a free Java code coverage reporting tool. It is based on jcoverage 1.0.5. See the Cobertura web page and wiki for more details.

Since 2.0.0, Cobertura versions follow the Semantic versioning guidelines.

DOWNLOAD

You can download Cobertura from The Central Repository. That includes the distributions for stand-alone command line usage.

To use it as Maven dependency, you can use the following snippet:

<dependency>
    <groupId>net.sourceforge.cobertura</groupId>
    <artifactId>cobertura</artifactId>
    <version>2.1.1</version>
    <scope>test</scope>
</dependency>

COPYRIGHT

Code in the net.sourceforge.cobertura.javancss package is Copyright (C) 2000 Chr. Clemens Lee

See the included file "LICENSE.txt"

LICENSE

Cobertura is free software. Most of it is licensed under the GNU GPL, and you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Please review the file LICENSE.txt included in this distribution for further details. Parts of Cobertura are licensed under the Apache Software License, Version 1.1.

WARRANTY

Cobertura is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

CONVENTIONS

Before committing

  • check all tests pass
  • build the project, so that all code gets uniformly indented. A Maven plugin ensures this.

MAVEN MIGRATION NOTES

  • How do we get a good blame while all files were moved?

Use "git blame --follow" nameOfFile.java

Cobertura is built on Travis-CI.

net.sourceforge.cobertura

Cobertura

Versions

Version
2.1.1
2.0.3
2.0.2
2.0.1
2.0
1.9.4.1
1.9.4
1.9.3
1.9.2
1.9.1.1
1.9.1
1.9
1.9rc1