-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·48 lines (38 loc) · 1.17 KB
/
test.sh
File metadata and controls
executable file
·48 lines (38 loc) · 1.17 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
#!/usr/bin/env bash
# Python Cloudy Test Script
#
# This script runs the minimal test suite to ensure core functionality
# doesn't break during development.
set -e # Exit on any error
echo "🧪 Python Cloudy Test Script"
echo "============================="
# Check if virtual environment exists
if [ ! -d ".venv" ]; then
echo "❌ Virtual environment not found!"
echo "💡 Run './bootstrap.sh' to set up the environment first."
exit 1
fi
# Activate virtual environment
echo "🔧 Activating virtual environment..."
source .venv/bin/activate
# Check if we're in the right directory (should have fabfile.py)
if [ ! -f "fabfile.py" ]; then
echo "❌ Error: fabfile.py not found!"
echo "💡 Make sure you're running this from the python-cloudy project root."
exit 1
fi
# Run the test suite
echo "🚀 Running test suite..."
echo ""
python tests/test_runner.py
# Get the exit code from the test runner
TEST_EXIT_CODE=$?
echo ""
if [ $TEST_EXIT_CODE -eq 0 ]; then
echo "✅ All tests completed successfully!"
else
echo "❌ Tests failed with exit code: $TEST_EXIT_CODE"
exit $TEST_EXIT_CODE
fi
echo ""
echo "🎯 Test script completed successfully!"