veza/tmt/tests/backend/unit.sh

18 lines
336 B
Bash
Raw Normal View History

#!/bin/bash
set -e
REPO_ROOT=$(git rev-parse --show-toplevel)
BACKEND_DIR="$REPO_ROOT/veza-backend-api"
echo "📍 Backend Unit Tests (Low Power Mode)"
cd "$BACKEND_DIR"
export GOMAXPROCS=1
echo "⚙️ Constraint: GOMAXPROCS=1"
echo "🧪 Running Unit Tests..."
go test ./internal/... -v -short
echo "✅ Unit tests completed."