- 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>
47 lines
1.9 KiB
Bash
Executable File
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 "╚══════════════════════════════════════════════════════════════╝"
|