-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
28 lines (22 loc) · 1.12 KB
/
Copy pathrun_tests.sh
File metadata and controls
28 lines (22 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# 🛡️ Aegis Prompter - Automated Testing Engine
# 1. Get project absolute path
PROJECT_ROOT="$(cd "$(dirname "$0")" && pwd)"
echo "🚀 [Aegis Prompter] Booting up testing engine in: $PROJECT_ROOT"
# 2. Locate isolated Python engine
PYTHON_BIN="$PROJECT_ROOT/.venv/bin/python"
if [ ! -f "$PYTHON_BIN" ]; then
echo "⚠️ ERROR: Python binary not found in .venv. Ensure the environment is set up by running 'bash setup_mac.sh' first."
exit 1
fi
# 3. Ensure testing utilities are available
echo "📦 [1/2] Checking and installing unit testing dependencies..."
"$PYTHON_BIN" -m pip install pytest pytest-mock -q
# 4. Ignite green light tests (filtering environmental warnings like EOL, SSL, Deprecation)
echo "🏗️ [2/2] Initiating Unit Tests and Mock Verifications..."
export PYTHONPATH="$PROJECT_ROOT"
"$PYTHON_BIN" -m pytest "$PROJECT_ROOT/tests/unit" -v \
-W ignore::DeprecationWarning \
-W ignore::FutureWarning \
-W ignore:"urllib3 v2 only supports OpenSSL"
echo "✅ [COMPLETE] Testing suite finished execution. Environmental warnings were filtered out. Please review the logical green lights."