Skip to content
SPECIFICTION
Get listed

cargo-llvm-cov vs OpenClover

cargo-llvm-cov

github.com

OpenClover

openclover.org

Side by side

Figurecargo-llvm-covOpenClover
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
WindowsYesYes
macOSYesYes
LinuxYesYes
Plans published11
Spec score · Test Coverage Tools8.1 (#8)7.6 (#15)
Coverage typesIt generates line and region coverage, while branch coverage is optional and currently requires nightly Rust.It tracks global, per-test and distributed per-test coverage with method, statement and branch metrics.
LicenseThe project is available under either the Apache License 2.0 or the MIT License, at the user's option.OpenClover software is licensed under Apache 2.0.
Purposecargo-llvm-cov is a Cargo subcommand that wraps rustc’s LLVM source-based code coverage instrumentation.OpenClover is a code coverage tool for Java, Groovy and AspectJ.
Report formatsCoverage reports can be generated as text, HTML, JSON, LCOV, Cobertura XML, or Codecov Custom Coverage format.Reports can be generated as HTML, XML, PDF, JSON and TEXT.

Plans

cargo-llvm-cov

  • Free / open sourceFree

cargo-llvm-cov pricing →

OpenClover

  • OpenCloverFree

OpenClover pricing →

In their own words

cargo-llvm-cov

cargo-llvm-cov is a Cargo subcommand that uses rustc’s LLVM source-based instrumentation to generate code coverage reports. It works with cargo test, cargo run, and cargo nextest through a Cargo-compatible command-line interface, and supports proc-macro UI tests. Line and region coverage are available; branch coverage is optional and requires nightly Rust. Doc-test coverage is also optional and requires nightly features. Reports can be generated as text, HTML, JSON, LCOV, Cobertura XML, or Codecov Custom Coverage format. The project provides GitHub Actions examples for uploading reports to Codecov and a GitLab CI example using Cobertura output. LCOV results can be viewed in VS Code with the Coverage Gutters extension. With compatible Clang and LLVM tools configured, the tool can include C and C++ code linked to a Rust library or binary. It supports Linux, macOS, and Windows, and is licensed under either Apache-2.0 or MIT at the user's choice. Installation requires rustc 1.87 or newer, while running it requires Cargo 1.60 or newer. Branch and doc-test coverage are unstable and have known issues, respectively.

Visit github.com

OpenClover

OpenClover is a free code coverage tool for Java, Groovy and AspectJ. It tracks global, per-test and distributed per-test coverage using method, statement and branch metrics. More than 20 built-in code metrics are included, and custom metrics are supported. Coverage reports can be generated as HTML, XML, PDF, JSON or text. You can narrow coverage scope by paths, classes, methods, code blocks, statements, complexity or inline comments. For test optimization, OpenClover identifies tests to rerun when classes change, can run failing tests first, and can randomize test order. Integrations include Ant, Maven, Gradle, Grails, Griffon, Jenkins, Bamboo, Eclipse, IntelliJ IDEA, Sonar and JIRA. Dedicated test support covers JUnit 3 and 4, TestNG and Spock. Version 5.1.x supports JRE or JDK 8 through 25 and Groovy 3.x, 4.x and 5.x. The project is volunteer-maintained and Apache 2.0 licensed; community support typically responds within a few days.

Visit openclover.org