-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.79 KB
/
Copy pathMakefile
File metadata and controls
48 lines (40 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.PHONY: coverage coverage-quick coverage-ci coverage-persistent coverage-proptest coverage-report coverage-stable clean-coverage
# Full coverage with all features + branch coverage (requires nightly)
coverage:
cargo llvm-cov clean --workspace
mkdir -p target/coverage
cargo +nightly llvm-cov --all-features --branch --lcov --output-path target/coverage/lcov.info
cargo +nightly llvm-cov report --html --output-dir target/coverage/
@echo "Report: target/coverage/html/index.html"
# Quick coverage (default features only, requires nightly for branch)
coverage-quick:
cargo +nightly llvm-cov --branch --html --output-dir target/coverage/quick
# CI with threshold enforcement (requires nightly for branch)
coverage-ci:
mkdir -p target/coverage
cargo +nightly llvm-cov --all-features --branch \
--fail-under-lines 70 \
--fail-under-branches 60 \
--fail-under-functions 75 \
--lcov --output-path target/coverage/lcov.info
# Persistent ARTrie focused coverage
coverage-persistent:
PROPTEST_CASES=500 cargo +nightly llvm-cov --features persistent-artrie,group-commit,parallel-merge \
--branch --html --output-dir target/coverage/persistent
# Extended proptest coverage
coverage-proptest:
PROPTEST_CASES=1000 cargo +nightly llvm-cov --all-features --branch \
--html --output-dir target/coverage/proptest
# Generate HTML report from existing coverage data
coverage-report:
cargo llvm-cov report --html --output-dir target/coverage/
# Coverage without branch (works on stable)
coverage-stable:
cargo llvm-cov clean --workspace
mkdir -p target/coverage
cargo llvm-cov --all-features --lcov --output-path target/coverage/lcov.info
cargo llvm-cov report --html --output-dir target/coverage/
@echo "Report: target/coverage/html/index.html"
clean-coverage:
cargo llvm-cov clean --workspace
rm -rf target/coverage