Cobertura
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
- Code coverage measurement for Java programs
- Integration with build tools like Maven and Ant
- Identifies untested code
- Generates coverage reports in multiple formats like HTML and XML
Pricing
- Open Source
Pros
Cons
Official Links
Reviews & Ratings
Login to ReviewThe Best Cobertura Alternatives
View all cobertura alternatives with detailed comparison →
Top Development and Code Coverage and other similar apps like Cobertura
Here are some alternatives to Cobertura:
Suggest an alternative ❐EclEmma
Atlassian Clover
ECobertura
Coverlipse
OpenClover