Registry / testing / cargo-tarpaulin

cargo-tarpaulin

JSON →
library0.35.2rscratesunverified

Cargo-Tarpaulin is a tool to determine code coverage achieved via tests

# Cargo.toml [dependencies] cargo-tarpaulin = "0.35.2"
INSTALL
IMPORT
SIG · CARGO-TARPAULIN
C
cargo-tarpaulin
testingrustv0.35.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run_coverage
use cargo_tarpaulin::run_coverage;

Run code coverage analysis on your tests.

use cargo_tarpaulin::run_coverage; let result = run_coverage(&["cargo", "test"]).unwrap(); println!("Coverage: {}%", result.coverage_percentage());
Debug
Known issues
gotchaRequires nightly Rust for some features.
fix
Use `cargo +nightly tarpaulin` or set `RUSTUP_TOOLCHAIN=nightly`.
affects: >=0.35.0
Upgrade
Version history
0.35.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources
cargo-tarpaulin — cargo add cargo-tarpaulin · libregistry