Add Engine API tests for Stage 4

This commit is contained in:
2025-10-26 01:30:52 -06:00
parent 73f6d5745f
commit 68c7c772c0
7 changed files with 475 additions and 6 deletions

View File

@@ -25,6 +25,7 @@ AGENT_ACTION=""
VITE_FLAG=0
FLASK_FLAG=0
QUICK_FLAG=0
ENGINE_TESTS_FLAG=0
while (( "$#" )); do
case "$1" in
@@ -34,11 +35,29 @@ while (( "$#" )); do
-Vite|--vite) VITE_FLAG=1 ;;
-Flask|--flask) FLASK_FLAG=1 ;;
-Quick|--quick) QUICK_FLAG=1 ;;
-EngineTests|--engine-tests) ENGINE_TESTS_FLAG=1 ;;
*) ;; # ignore unknown for flexibility
esac
shift || true
done
if (( ENGINE_TESTS_FLAG )); then
cd "$SCRIPT_DIR"
export BOREALIS_PROJECT_ROOT="${SCRIPT_DIR}"
if command -v python3 >/dev/null 2>&1; then
PYTHON_BIN="$(command -v python3)"
elif command -v python >/dev/null 2>&1; then
PYTHON_BIN="$(command -v python)"
else
echo -e "${RED}Python interpreter not found. Install Python 3 to run Engine tests.${RESET}" >&2
exit 1
fi
"$PYTHON_BIN" -m pytest Data/Engine/Unit_Tests
exit $?
fi
# ---- Banner ----
clear || true
echo -e "${BOREALIS_BLUE}"