JaCoCo review
A focused, open-source choice for build-integrated Java and JVM coverage.
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
JaCoCo is a free, open-source code coverage library for Java and JVM projects. It is designed for developers who want coverage collection and reporting inside local or continuous-integration build processes, particularly teams working with Maven or Ant. JaCoCo instruments Java class files, collects runtime execution data through a Java agent or offline instrumentation, analyzes results, and supports Java, Kotlin, Groovy, and Scala-generated bytecode.
Coverage depth is a central strength. JaCoCo provides instruction, branch, complexity, line, method, and class coverage counters, giving teams several ways to evaluate test completeness. It can generate HTML, XML, and CSV reports for different reporting workflows. Coverage rules can also enforce configured thresholds during builds, allowing a project to stop when coverage requirements are missed. These capabilities make JaCoCo a practical fit when coverage needs to be part of the build rather than treated as a separate reporting step.
The main trade-off is its focused delivery model. JaCoCo is a library and build-integrated tool, not a hosted coverage dashboard, so teams should choose it when they are comfortable managing coverage within self-hosted Java build environments. Maven, Ant, the Java agent, and the command-line interface provide documented integration paths, but the workflow remains oriented around build configuration and generated reports. Pick JaCoCo for open-source, threshold-enforced coverage in Java and JVM projects; consider another option if the priority is a hosted dashboard or broader platform workflow.
JaCoCo pros and cons
- Where it wins
- Supports instruction, branch, complexity, line, method, and class counters
- Generates HTML, XML, and CSV reports
- Coverage thresholds can halt builds when requirements are missed
- Where it doesn't
- Self-hosted rather than a hosted coverage dashboard
- Coverage collection requires instrumentation through an agent or offline mode
- Build integration is centered on Maven, Ant, and command-line workflows
JaCoCo fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update