File tree Expand file tree Collapse file tree 2 files changed +18
-11
lines changed
Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -196,14 +196,18 @@ cargo test -- --ignored
196196
197197### Test Coverage
198198
199- Using tarpaulin :
199+ Using llvm-cov :
200200
201201``` bash
202- # Install tarpaulin
203- cargo install cargo-tarpaulin
202+ # Install llvm-cov
203+ cargo install cargo-llvm-cov
204204
205- # Generate coverage report
206- cargo tarpaulin --out Html --output-dir coverage
205+ # Generate HTML coverage report
206+ cargo llvm-cov --workspace --html
207+ # Report: target/llvm-cov/html/index.html
208+
209+ # Generate LCOV report (for CI/Codecov)
210+ cargo llvm-cov --workspace --lcov --output-path lcov.info
207211```
208212
209213### Integration Tests
Original file line number Diff line number Diff line change @@ -474,17 +474,20 @@ async fn test_with_fixture() {
474474
475475## Test Coverage
476476
477- Check test coverage with tarpaulin :
477+ Check test coverage with llvm-cov :
478478
479479``` bash
480- # Install tarpaulin
481- cargo install cargo-tarpaulin
480+ # Install llvm-cov
481+ cargo install cargo-llvm-cov
482482
483- # Run coverage
484- cargo tarpaulin --workspace --out Html
483+ # Run coverage with HTML report
484+ cargo llvm-cov --workspace --html
485485
486486# View report
487- open tarpaulin-report.html
487+ open target/llvm-cov/html/index.html
488+
489+ # Generate LCOV report (for CI/Codecov)
490+ cargo llvm-cov --workspace --lcov --output-path lcov.info
488491```
489492
490493** Current Coverage** : >80% across all crates
You can’t perform that action at this time.
0 commit comments