#!/usr/bin/env bash
# Menjalankan semua tes. Tes integrasi PHP otomatis di-skip jika server PHP belum jalan.
set -e
cd "$(dirname "$0")"
echo "== Python (unit + integration engine, tanpa DB) =="; python3 -m pytest tests/python -q
echo "== PHP unit ==";                                    php tests/php/run_tests.php
echo "== Integrasi dashboard API (butuh server + DB) =="; python3 -m pytest tests/integration -q
