1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 06:57:43 +02:00

build: add coverage recipes to justfile

This commit is contained in:
Rob Ede
2024-06-10 01:58:13 +01:00
parent 7f529e35b2
commit 53086a90a6
2 changed files with 10 additions and 1 deletions

View File

@ -53,6 +53,14 @@ test-docs toolchain="": && doc
# Test workspace.
test-all toolchain="": (test toolchain) (test-docs toolchain)
# Test workspace and generate Codecov coverage file.
test-coverage-codecov toolchain="":
cargo {{ toolchain }} llvm-cov --workspace {{ all_crate_features }} --codecov --output-path codecov.json
# Test workspace and generate LCOV coverage file.
test-coverage-lcov toolchain="":
cargo {{ toolchain }} llvm-cov --workspace {{ all_crate_features }} --lcov --output-path lcov.info
# Document crates in workspace.
doc *args:
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --no-deps --workspace {{ all_crate_features }} {{ args }}