cobertura

Cobertura

Cobertura is an open source Java code coverage tool that calculates the percentage of code accessed by tests. It shows which parts of the codebase are lacking test coverage to help developers improve test quality. Cobertura integrates with build tools like Maven and Ant.
cobertura screenshot

Cobertura: Open Source Java Code Coverage Tool

Cobertura is an open source Java code coverage tool that calculates the percentage of code accessed by tests, highlighting areas with test coverage gaps and improving overall test quality, integrated with Maven and Ant.

What is Cobertura?

Cobertura is an open source code coverage tool for Java programs. It calculates the percentage of code that is executed or accessed by automated tests and generates detailed reports highlighting code that lacks adequate test coverage. This helps developers understand which parts of the codebase may need additional testing.

Some key features of Cobertura include:

  • Integration with popular Java build tools like Maven, Gradle and Ant
  • Line-by-line code coverage metrics
  • Branch coverage tracking to see if all execution paths have been tested
  • Highlighting of lines/branches that are not covered by tests
  • Summary and package-level coverage reporting
  • XML and HTML reports

By providing visibility into actual test coverage, Cobertura enables developers to strategically improve their test suites. Stronger test coverage translates to higher code quality and reduced bugs. Teams can set incremental code coverage goals over time as part of a test-driven development process.

Cobertura is licensed under the GPL v2. It works by instrumenting Java bytecode during the build process to add tracking during test runtime without requiring code changes. Overall, Cobertura is a lightweight, easy-to-use tool for assessing and monitoring test coverage in Java applications.

Cobertura Features

Features

  1. Code coverage measurement for Java programs
  2. Integration with build tools like Maven and Ant
  3. Identifies untested code
  4. Generates coverage reports in multiple formats like HTML and XML

Pricing

  • Open Source

Pros

Free and open source

Easy to integrate into build process

Helps improve test quality and coverage

Widely used and well-supported

Cons

Only for Java code

Configuration can be complex

Report generation can slow builds

Limited customization options

Reviews & Ratings

Login to Review
No reviews yet

Be the first to share your experience with cobertura!

Login to Review

The Best Cobertura Alternatives

Top Development and Code Coverage and other similar apps like Cobertura


EclEmma icon

EclEmma

EclEmma is a free, open source Java code coverage tool for Eclipse. It is used by developers to measure and report on code coverage in Java projects within the Eclipse IDE.EclEmma shows which lines of code have been executed during runtime. It visually highlights covered and uncovered code using different...
EclEmma image
Atlassian Clover icon

Atlassian Clover

Atlassian Clover is a code coverage tool designed specifically for Java applications. It integrates tightly with build tools like Maven and Gradle to provide statement, branch, and method coverage metrics right within the developer's workflow.A key benefit of Clover is that it enables developers to easily visualize code coverage data...
Atlassian Clover image
ECobertura icon

ECobertura

ECobertura is an open source code coverage tool for Java applications. It calculates the percentage of code that is executed or accessed by tests, providing important metrics on how thoroughly automated tests exercise an application's codebase.Some key features of ECobertura include:Integrates with build tools like Ant and Maven to calculate...
Coverlipse icon

Coverlipse

Coverlipse is an open-source code coverage tool designed specifically for use with Eclipse and Java applications. It allows developers to measure and monitor code coverage of their JUnit tests to ensure thorough test suites.Some key features of Coverlipse include:Statement, branch, and MC/DC coverage metricsIntegrated with JUnit test frameworkCoverage highlighting in...
Coverlipse image
OpenClover icon

OpenClover

OpenClover is an open-source code coverage tool for Java applications. It is used to measure how much of the code in a Java program is executed or tested when running automated tests. This helps developers understand which parts of the application code may not be sufficiently tested.When running tests with...
OpenClover image
CodeCover icon

CodeCover

CodeCover is an open source automated software testing tool used for measuring code coverage of C, C++, Java and C# programs. It generates detailed code coverage reports to quantitatively analyze how much of the source code is executed and tested by a test suite.Some key features of CodeCover include:Detailed reporting...