#line #exercise #cargo #diff #refresh #changed

app cargo-line-test

Run tests by the lines they exercise

2 releases

0.1.1 Jan 19, 2025
0.1.0 Oct 17, 2024

#127 in Cargo plugins

Download history 156/week @ 2024-10-16 4/week @ 2024-10-23 6/week @ 2024-10-30 7/week @ 2024-11-06 1/week @ 2024-12-04 1/week @ 2024-12-11 117/week @ 2025-01-15

117 downloads per month

AGPL-3.0

44KB
1K SLoC

cargo-line-test

Run tests by the lines they exercise

cargo-line-test relies on cargo-llvm-cov and requires it to be installed independently:

cargo install cargo-line-test cargo-llvm-cov

Examples

# Build cargo-line-test database
cargo line-test --build

# Run the tests that exercise src/main.rs:99
cargo line-test --line src/main.rs:99

# Run the tests that exercise lines changed by diff
git diff | cargo line-test --diff

# Update the database following source code changes
cargo line-test --refresh

Dependencies

~8–19MB
~284K SLoC