Files
2026-06-10 21:27:27 +02:00

34 lines
915 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -euo pipefail
# Doppelklickbares Test-Script für macOS (.command wird von Finder automatisch im Terminal geöffnet)
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "========================================"
echo " Tätigkeitsnachweis-Generator – Tests"
echo "========================================"
echo ""
VENV_DIR=".venv"
if [[ ! -x "$VENV_DIR/bin/python" ]]; then
echo "[FEHLER] Virtuelle Umgebung nicht gefunden."
echo "Bitte zuerst start.command ausführen, um das Projekt einzurichten."
read -p "Drücke Enter zum Beenden..."
exit 1
fi
echo "[INFO] Stelle sicher, dass pytest installiert ist..."
"$VENV_DIR/bin/pip" install pytest --quiet 2>/dev/null || true
echo ""
echo "[INFO] Führe End-to-End-Tests aus…"
echo ""
"$VENV_DIR/bin/python" -m pytest tests/test_e2e.py -v
echo ""
read -p "Drücke Enter zum Beenden..."