chore: run all tests in ci without "local" feature (#761)
This commit is contained in:
parent
f89e412200
commit
baf22d37bb
1 changed files with 44 additions and 1 deletions
9
justfile
9
justfile
|
|
@ -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
|
||||
Loading…
Reference in a new issue