From 5b647f900be98c0dc13d0424201331b6ea8e42da Mon Sep 17 00:00:00 2001 From: Orual Date: Fri, 3 Apr 2026 01:00:25 -0400 Subject: [PATCH] [meta] add test recipes for feature matrix (just test, test-all, test-feature) --- justfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/justfile b/justfile index 4c4785d1..aca9a884 100644 --- a/justfile +++ b/justfile @@ -5,6 +5,28 @@ default: pre-commit-all: pre-commit run --all-files +# Run tests with default features +test *ARGS: + cargo nextest run {{ARGS}} + +# Run tests across the full feature matrix +test-all: + @echo "── default ──" + cargo nextest run + @echo "" + @echo "── scope-check ──" + cargo nextest run --features scope-check + @echo "" + @echo "── streaming ──" + cargo nextest run --features streaming + @echo "" + @echo "── websocket ──" + cargo nextest run --features websocket + +# Run tests with a specific feature set +test-feature FEATURE *ARGS: + cargo nextest run --features {{FEATURE}} {{ARGS}} + # Check that jacquard-common compiles for wasm32 check-wasm: cargo build --target wasm32-unknown-unknown -p jacquard-common --features websocket,reqwest-client -- 2.51.2