mirror of
https://github.com/zaphar/sheetsui.git
synced 2025-07-23 05:19:48 -04:00
chore: coverage automation
This commit is contained in:
parent
8e7895cdbc
commit
80b17c1cb6
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
/target
|
/target
|
||||||
result/
|
result/
|
||||||
*.json
|
*.json
|
||||||
tarpaulin-*
|
tarpaulin-report.*
|
||||||
|
23
Makefile
Normal file
23
Makefile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
|
||||||
|
rust_files=$(call rwildcard,src,*.rs)
|
||||||
|
|
||||||
|
test: $(rust-files)
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
build: $(rust-files)
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
tarpaulin-report.%: $(rust_files)
|
||||||
|
cargo tarpaulin --skip-clean --test --out $*
|
||||||
|
|
||||||
|
cover: tarpaulin-report.html
|
||||||
|
|
||||||
|
view-cover: tarpaulin-report.html
|
||||||
|
open $<
|
||||||
|
|
||||||
|
clean-tarpaulin:
|
||||||
|
rm -f tarpaulin-report.*
|
||||||
|
|
||||||
|
clean: clean-tarpaulin
|
||||||
|
cargo clean
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user