chore: run all tests in ci without "local" feature (#761)

This commit is contained in:
Guy Lichtman 2026-03-24 01:03:16 +02:00 • committed by GitHub
commit baf22d37bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,15 @@ fix: fmt
test:
cargo test --all-features
if command -v jq > /dev/null 2>&1; then \
FEATURES=$(cargo metadata --no-deps --format-version 1 \
| jq -r '[.packages[] | select(.name == "rmcp") | .features | keys[] \
| select(startswith("__") | not) \
| select(. != "local")] | join(",")') && \
cargo test -p rmcp --features "$FEATURES"; \
else \
echo "warning: jq not found, skipping non-local feature tests"; \
fi
cov:
cargo llvm-cov --lcov --output-path {{justfile_directory()}}/target/llvm-cov-target/coverage.lcov