-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
Β·41 lines (33 loc) Β· 1.25 KB
/
test.sh
File metadata and controls
executable file
Β·41 lines (33 loc) Β· 1.25 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
#!/bin/bash
# Test script for Airship Zero UI Foundation
# Comprehensive testing with coverage reporting
set -e # Exit on any error
echo "π§ͺ Running Airship Zero UI Foundation Test Suite"
echo " TDD validation with comprehensive coverage"
echo ""
# Check if we have UV available
if ! command -v uv &> /dev/null; then
echo "β UV is not installed. Please install UV first:"
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"
exit 1
fi
# Run tests with coverage
echo "π Running unit tests with coverage analysis..."
echo ""
uv run pytest tests/ -v --cov=. --cov-report=html --cov-report=term-missing
echo ""
echo "π Coverage report generated in htmlcov/index.html"
echo "π Open htmlcov/index.html in a browser to see detailed coverage"
echo ""
# Optional: Run specific test categories
if [ "$1" = "ui" ]; then
echo "π¨ Running UI-specific tests only..."
uv run pytest tests/ -v -m ui
elif [ "$1" = "layout" ]; then
echo "π Running layout tests only..."
uv run pytest tests/test_ui_foundation.py::TestFlowContainer -v
elif [ "$1" = "blinken" ]; then
echo "π‘ Running BlinkenLight tests only..."
uv run pytest tests/test_ui_foundation.py::TestBlinkenLight -v
fi
echo "β
Test suite completed successfully!"