2026-02-23 12:59:55 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
|
|
|
|
|
|
|
|
echo "=== Running Rust tests ==="
|
|
|
|
|
cargo test --manifest-path "$PROJECT_ROOT/Cargo.toml"
|
|
|
|
|
|
|
|
|
|
echo "=== Running frontend unit tests ==="
|
2026-03-18 09:30:51 +00:00
|
|
|
if [ -d "$PROJECT_ROOT/frontend" ]; then
|
|
|
|
|
cd "$PROJECT_ROOT/frontend"
|
|
|
|
|
npm test
|
|
|
|
|
else
|
|
|
|
|
echo "Skipping frontend tests (no frontend directory)"
|
|
|
|
|
fi
|
2026-02-23 12:59:55 +00:00
|
|
|
|
2026-03-17 11:32:44 +00:00
|
|
|
# Disabled: e2e tests may be causing merge pipeline hangs (no running server
|
|
|
|
|
# in merge workspace → Playwright blocks indefinitely). Re-enable once confirmed.
|
2026-03-17 12:44:24 +00:00
|
|
|
# Disabled: e2e tests cause merge pipeline hangs (no running server
|
|
|
|
|
# in merge workspace → Playwright blocks indefinitely).
|
2026-03-17 11:32:44 +00:00
|
|
|
# echo "=== Running e2e tests ==="
|
|
|
|
|
# npm run test:e2e
|