From 12c43bf9abb84098d80ce0b3e10cd32c3654c497 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 11 Feb 2022 15:49:14 -0500 Subject: [PATCH] Add justfile --- justfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..bada7b2 --- /dev/null +++ b/justfile @@ -0,0 +1,30 @@ +# Lists the available actions +default: + @just --list + +# Generate test coverage report. Only works on amd64 linux, and requires pycobertura to be installed, as well as cargo-tarpaulin +coverage: + cargo tarpaulin --out Xml + pycobertura show --format html --output coverage.html cobertura.xml + +# Remove generated files +clean: + cargo clean + rm cobertura.xml + rm coverage.html + +# Check code style +lint: + cargo clippy + +# Format the code +fmt: + cargo +nightly fmt + +# Run the normal tests +test: + cargo test + +# Run tests without the standard library +test-no-std: + cargo test --no-default-features --features alloc \ No newline at end of file