| Crates.io | cargo-line-test |
| lib.rs | cargo-line-test |
| version | 0.1.1 |
| created_at | 2024-10-17 20:01:19.675096+00 |
| updated_at | 2025-01-19 00:31:49.262178+00 |
| description | Run tests by the lines they exercise |
| homepage | |
| repository | https://github.com/trailofbits/cargo-line-test |
| max_upload_size | |
| id | 1413568 |
| size | 70,630 |
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
# 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