Files
rpa_vision_v3/run_error_handler_tests.sh
Dom a27b74cf22 v1.0 - Version stable: multi-PC, détection UI-DETR-1, 3 modes exécution
- Frontend v4 accessible sur réseau local (192.168.1.40)
- Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard)
- Ollama GPU fonctionnel
- Self-healing interactif
- Dashboard confiance

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:23:51 +01:00

47 lines
1.9 KiB
Bash
Executable File

#!/bin/bash
#
# Script pour exécuter tous les tests de gestion d'erreurs
#
set -e
echo "╔══════════════════════════════════════════════════════════════╗"
echo "║ Tests de Gestion d'Erreurs - RPA Vision V3 ║"
echo "╚══════════════════════════════════════════════════════════════╝"
echo ""
# Couleurs
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
# Vérifier l'environnement virtuel
if [ ! -d "venv_v3" ]; then
echo "❌ Environnement virtuel non trouvé"
echo "Exécute: python3 -m venv venv_v3"
exit 1
fi
# Activer l'environnement
source venv_v3/bin/activate
echo -e "${YELLOW}[1/3]${NC} Tests unitaires ErrorHandler..."
pytest tests/unit/test_error_handler.py -v --tb=short
echo ""
echo -e "${YELLOW}[2/3]${NC} Tests d'intégration récupération d'erreurs..."
pytest tests/integration/test_error_recovery.py -v --tb=short
echo ""
echo -e "${YELLOW}[3/3]${NC} Couverture de code..."
pytest tests/unit/test_error_handler.py tests/integration/test_error_recovery.py \
--cov=core/execution/error_handler \
--cov=core/execution/action_executor \
--cov=core/graph/node_matcher \
--cov-report=term-missing
echo ""
echo "╔══════════════════════════════════════════════════════════════╗"
echo "║ ✅ TESTS TERMINÉS ║"
echo "╚══════════════════════════════════════════════════════════════╝"