Skip to content

Commit c83e3c5

Browse files
committed
docs: tarpaulin → llvm-cov guidance
1 parent af65141 commit c83e3c5

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

docs/guides/building.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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

docs/guides/testing.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)