cargo-llvm-cov icon indicating copy to clipboard operation
cargo-llvm-cov copied to clipboard

Allow running individual tests with coverage

Open Pzixel opened this issue 1 year ago • 2 comments

There is a workaround currently to run individual tests and get coverage for them:

 cargo llvm-cov --lcov --output-path lcov.info  -- my::super::model::test_name --exact --nocapture

I think it is either worth documenting this as a recommended way of running individual tests or add an explicit option for this. Currently cargo-llvm-cov looks highly tuned for CI workflow while I think local development flow is also valuable, which you want to run one or a couple of tests at once, not the entire test suite.

Pzixel avatar Feb 20 '24 10:02 Pzixel