#!/usr/bin/env bash # Run server unit + integration tests with DATABASE_URL from server/.env set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "$ROOT/server" if [[ -f .env ]]; then set -a # shellcheck source=/dev/null source .env set +a fi dart pub get # Exclude live Alpaca calls by default; use scripts/test-server-alpaca.sh exec dart test --exclude-tags=alpaca "$@"