.PHONY: coverage coverage-quick coverage-ci coverage-persistent coverage-proptest coverage-report coverage-stable clean-coverage
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"
coverage-quick:
cargo +nightly llvm-cov --branch --html --output-dir target/coverage/quick
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
coverage-persistent:
PROPTEST_CASES=500 cargo +nightly llvm-cov --features persistent-artrie,group-commit,parallel-merge \
--branch --html --output-dir target/coverage/persistent
coverage-proptest:
PROPTEST_CASES=1000 cargo +nightly llvm-cov --all-features --branch \
--html --output-dir target/coverage/proptest
coverage-report:
cargo llvm-cov report --html --output-dir target/coverage/
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