JaCoCo
JaCoCo is a free code coverage library for Java and Java VM-based environments.
What JaCoCo is
JaCoCo is a free code coverage library for Java and Java VM-based environments. It measures instruction, branch, line, method, type, and cyclomatic complexity coverage. Its Java agent instruments class files as they load, without depending on an application framework. Reports are available in HTML, XML, and CSV, and JaCoCo provides Ant tasks and a Maven plug-in to collect execution data and produce them. Its integration matrix includes Gradle, Eclipse, IntelliJ IDEA, Jenkins, SonarQube, and TeamCity. JaCoCo officially supports Java class files from version 1.0 through 27, with experimental support for version 28; the runtime and tools require Java 1.5 or higher. Line coverage and source highlighting require class files compiled with debug information that includes line numbers. The library and included documentation use the Eclipse Public License 2.0 except where noted. The project is maintained by volunteers and does not commit to release dates.
Good
- Free library under the Eclipse Public License 2.0.
- Measures instruction, branch, line, method, type, and complexity coverage.
- Creates HTML, XML, and CSV reports.
- Includes Ant tasks and a Maven plug-in.
- Integration matrix includes Gradle, Jenkins, and IntelliJ IDEA.
Watch out
- Line coverage needs debug information with line numbers.
- Agent TCP connections and JMX have no authentication.
- The project does not commit to release dates.
Who it suits
JaCoCo suits developers and teams who need Java or JVM code coverage reports and integrations with build or development tools. Users should account for its Java runtime requirement and the conditions for line coverage and source highlighting.
Verdict
JaCoCo provides Java coverage metrics, report formats, and build-tool integrations without a listed cost. Review the line-information requirement and agent security warning when planning its use.
Plans and prices
From JaCoCo's own pricing page, checked 4 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| Free | Free | Free Java code coverage library · EPL 2.0 license |
The facts
Each one read from JaCoCo's own pages, with the date it was checked.
What it does
- Build tools
- JaCoCo provides Ant tasks and a Maven plug-in for collecting execution data and creating reports.checked 4 Oct 2026
- Coverage metrics
- It analyzes instruction, branch, line, method, type, and cyclomatic complexity coverage.checked 4 Oct 2026
- Instrumentation
- Its Java agent instruments class files on the fly as they are loaded, independently of the application framework.checked 4 Oct 2026
- Integrations
- The integration matrix lists tools including Gradle, Eclipse, IntelliJ IDEA, Jenkins, SonarQube, and TeamCity.checked 4 Oct 2026
- Java support
- JaCoCo officially supports Java class files from version 1.0 to 27 and experimentally supports version 28; its runtime and tools require Java 1.5 or higher.checked 4 Oct 2026
- License
- The library and its included documentation are made available under the Eclipse Public License 2.0, except where otherwise indicated.checked 4 Oct 2026
- Purpose
- JaCoCo is a code coverage library for Java and Java VM based environments.checked 4 Oct 2026
- Release schedule
- The project says it is maintained by volunteers in their free time and does not commit to particular release dates.checked 4 Oct 2026
- Report requirement
- Line coverage and source highlighting require class files compiled with debug information containing line numbers.checked 4 Oct 2026
- Reports
- It can create coverage reports in HTML, XML, and CSV formats.checked 4 Oct 2026
- Security
- The agent’s TCP connections and JMX interface have no authentication, and the documentation warns that exposing them to untrusted sources may reveal application information or permit denial-of-service attacks.checked 4 Oct 2026
- Support
- The project directs users to its public JaCoCo and EclEmma user group for feedback and questions.checked 4 Oct 2026
Alternatives to JaCoCo
- 1

Codecov
Free planOpen sourceWebAPIExtensionLinux8.0From $5 a month - 2
Avidemux
Free planOpen sourceWebLinuxmacOSWindows7.3Free plan - 3
Coverage.py
Free planOpen sourceAPILinuxmacOSSelf-hosted7.3Free plan - 4

Coveralls
Free planWebAPILinuxSelf-hosted6.8From $10 a month - 5
ReportGenerator
Free planLinuxmacOSWindows6.8$79 one-time - 6
gcov
Free planLinuxmacOSWindows6.5Free plan
