#!/bin/bash set -e cd /app pip install pytest pytest-asyncio httpx --break-system-packages -q 2>/dev/null echo "=============================================" echo " Life OS Dynamic Test Suite" echo "=============================================" echo "" case "${1}" in smoke) echo ">> Smoke tests"; python -m pytest tests/test_smoke_dynamic.py -v --tb=short ;; crud) echo ">> CRUD tests"; python -m pytest tests/test_crud_dynamic.py -v --tb=short ;; logic) echo ">> Business logic"; python -m pytest tests/test_business_logic.py -v --tb=short ;; report) echo ">> Route report"; python -m tests.route_report ;; fast) echo ">> Smoke, stop on fail"; python -m pytest tests/test_smoke_dynamic.py -v --tb=short -x ;; "") echo ">> Full suite"; python -m pytest tests/ -v --tb=short ;; *) echo ">> Custom: $@"; python -m pytest tests/ "$@" ;; esac echo "" echo "Done"