cyberhybridhub/scripts/test-admin-portal.sh
2026-05-31 11:17:12 -05:00

27 lines
660 B
Bash
Executable File

#!/usr/bin/env bash
# Run Flutter Admin Portal test suites (server + Flutter).
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
echo "==> Server admin portal tests"
cd "$ROOT/server"
if [[ -f .env ]]; then
set -a
# shellcheck source=/dev/null
source .env
set +a
fi
dart pub get
dart test \
test/trading/market_history_admin_logic_test.dart \
test/trading/market_history_admin_actions_test.dart \
test/integration/market_history_admin_handler_test.dart \
test/integration/market_history_admin_risk_test.dart
echo "==> Flutter admin portal tests"
cd "$ROOT"
flutter test test/admin/
echo "Admin portal tests passed."