Files
espocrm/custom/scripts/run_e2e_tests.sh
bsiggel 127fa6503b chore: Update copyright year from 2025 to 2026 across core files
- Updated copyright headers in 3,055 core application files
- Changed 'Copyright (C) 2014-2025' to 'Copyright (C) 2014-2026'
- Added 123 new files from EspoCRM core updates
- Removed 4 deprecated files
- Total changes: 61,637 insertions, 54,283 deletions

This is a routine maintenance update for the new year 2026.
2026-02-07 16:05:21 +01:00

65 lines
2.2 KiB
Bash

#!/bin/bash
################################################################################
# EspoCRM E2E Test Runner
# Führt automatisierte End-to-End Tests für alle Custom Entities durch
################################################################################
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
echo ""
echo "════════════════════════════════════════════════════════════════════════════════"
echo " ESPOCRM E2E TEST RUNNER "
echo "════════════════════════════════════════════════════════════════════════════════"
echo ""
# Check Python
if ! command -v python3 &> /dev/null; then
echo -e "${RED}❌ Python 3 nicht gefunden. Bitte installieren.${NC}"
exit 1
fi
# Check dependencies
echo -e "${BLUE}🔍 Prüfe Dependencies...${NC}"
python3 -c "import requests" 2>/dev/null || {
echo -e "${YELLOW}⚠️ 'requests' Modul nicht gefunden. Installiere...${NC}"
pip3 install requests || {
echo -e "${RED}❌ Installation fehlgeschlagen. Bitte manuell installieren: pip3 install requests${NC}"
exit 1
}
}
echo -e "${GREEN}✓ Dependencies OK${NC}"
echo ""
# Run tests
echo -e "${BLUE}🚀 Starte E2E Tests...${NC}"
echo ""
python3 e2e_tests.py
# Capture exit code
EXIT_CODE=$?
echo ""
if [ $EXIT_CODE -eq 0 ]; then
echo -e "${GREEN}✅ Alle Tests erfolgreich abgeschlossen!${NC}"
else
echo -e "${RED}❌ Tests fehlgeschlagen (Exit Code: $EXIT_CODE)${NC}"
fi
echo ""
echo "════════════════════════════════════════════════════════════════════════════════"
echo ""
exit $EXIT_CODE