-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup_tests.sh
More file actions
executable file
·42 lines (36 loc) · 1016 Bytes
/
Copy pathsetup_tests.sh
File metadata and controls
executable file
·42 lines (36 loc) · 1016 Bytes
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
#!/bin/bash
# Setup script for test infrastructure
echo "======================================"
echo "Setting up test infrastructure"
echo "======================================"
echo ""
# Check Python version
echo "Checking Python version..."
python3 --version
echo ""
# Install test dependencies
echo "Installing test dependencies..."
pip install -r requirements-test.txt
echo ""
# Verify pytest installation
echo "Verifying pytest installation..."
python3 -m pytest --version
echo ""
# Run tests
echo "======================================"
echo "Running test suite..."
echo "======================================"
python3 -m pytest tests/ -v --tb=short
# Check exit code
if [ $? -eq 0 ]; then
echo ""
echo "======================================"
echo "✓ All tests passed!"
echo "======================================"
else
echo ""
echo "======================================"
echo "✗ Some tests failed"
echo "======================================"
exit 1
fi