-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 904 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 904 Bytes
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
.PHONY: check clippy test snapshots coverage coverage-lines coverage clean
check:
@cargo check --workspace --all-targets
clippy:
@cargo clippy --workspace --all-targets -- -D warnings
test:
@cargo nextest run --no-fail-fast --hide-progress-bar --status-level none --failure-output final
shot:
@# See AGENTS.md for diagnostic guidelines
@cargo nextest run --no-fail-fast --hide-progress-bar --status-level none --failure-output final || true
@cargo insta accept
@cargo nextest run --no-fail-fast --hide-progress-bar --status-level none --failure-output final
coverage-lines:
@cargo llvm-cov --package plotnik-lib --text --show-missing-lines 2>/dev/null | grep '\.rs: [0-9]' | sed 's|.*/crates/|crates/|'
coverage:
@cargo +nightly llvm-cov --all-features --workspace --lcov --output-path lcov.info
fmt:
@cargo fmt --quiet
@npx -y prettier --list-different --write .
clean:
@cargo clean