-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_integration_tests.sh
More file actions
executable file
·60 lines (50 loc) · 1.55 KB
/
Copy pathrun_integration_tests.sh
File metadata and controls
executable file
·60 lines (50 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Complete Integration Test Runner
# Tests ALL APIs before UAT
set -e
echo "================================================================================"
echo "COMPLETE INTEGRATION TEST SUITE"
echo "================================================================================"
echo ""
echo "This will test:"
echo " ✓ Alpaca API (trading)"
echo " ✓ Supabase (database)"
echo " ✓ OpenRouter (AI analysis)"
echo " ✓ Perplexity (market research)"
echo " ✓ Complete workflows"
echo " ✓ Error handling"
echo ""
read -p "Press Enter to continue..."
echo ""
# Navigate to backend
cd backend
# Activate venv
if [ ! -d "venv" ]; then
echo "❌ Virtual environment not found. Run ./setup.sh first"
exit 1
fi
source venv/bin/activate
# Run tests
echo "Running integration tests..."
python test_all_integrations.py
exit_code=$?
if [ $exit_code -eq 0 ]; then
echo ""
echo "================================================================================"
echo "✓ ALL INTEGRATIONS VALIDATED!"
echo "================================================================================"
echo ""
echo "Next steps:"
echo " 1. Connect frontend to backend"
echo " 2. Run UAT testing"
echo ""
else
echo ""
echo "================================================================================"
echo "✗ SOME TESTS FAILED"
echo "================================================================================"
echo ""
echo "Fix issues before proceeding to UAT"
echo ""
fi
exit $exit_code