From a7d14fdaa48aecfe46083c956658bf89dbcb4a85 Mon Sep 17 00:00:00 2001 From: tbro Date: Wed, 14 Aug 2024 14:34:38 +0300 Subject: [PATCH] add just commands --- justfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 18036aff7b..ee5042b442 100644 --- a/justfile +++ b/justfile @@ -34,8 +34,15 @@ anvil *args: docker run -p 127.0.0.1:8545:8545 ghcr.io/foundry-rs/foundry:latest "anvil {{args}}" test: - cargo build --bin diff-test --release - cargo test --release --all-features + @echo 'Ommiting slow tests. Use `test-slow` for those. Or `test-all` for all tests.' + cargo nextest run --locked --release --workspace --all-features --retries 2 --verbose -E '!test(slow_)' + +test-slow: + @echo 'Only slow tests are included. Use `test` for those deemed not slow. Or `test-all` for all tests.' + cargo nextest run --locked --release --workspace --all-features --verbose -E 'test(slow_)' + +test-all: + cargo nextest run --locked --release --workspace --all-features --verbose clippy: cargo clippy --workspace --all-features --all-targets -- -D warnings