Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CARGO_TARGET_DIR ?= $(CURDIR)/target

.PHONY: all setup fmt lint build build-release check test unit-test miri clean doc doc-open
.PHONY: all setup fmt lint build build-release check test unit-test miri coverage coverage-html clean doc doc-open

all: lint test

Expand All @@ -11,6 +11,7 @@ setup:
cargo install typos-cli --locked
cargo install cargo-machete --locked
cargo install cargo-nextest --locked
cargo install cargo-llvm-cov --locked

# Formatting
fmt:
Expand Down Expand Up @@ -43,6 +44,14 @@ unit-test:
ulimit -s 16384 2>/dev/null || true; \
RUST_LOG="ERROR" cargo nextest run --workspace

# Coverage report (requires cargo-llvm-cov: `make setup`)
coverage:
cargo llvm-cov nextest --workspace

coverage-html:
cargo llvm-cov nextest --workspace --html
@echo "Report: target/llvm-cov/html/index.html"

miri:
cargo miri setup
MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test --no-default-features
Expand Down
Loading