mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-26 19:41:57 -06:00
Add Engine API tests for Stage 4
This commit is contained in:
19
Borealis.sh
19
Borealis.sh
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user