28 lines
No EOL
523 B
Bash
Executable file
28 lines
No EOL
523 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Test script for both backend and frontend
|
|
|
|
set -e
|
|
|
|
echo "🧪 Running tests..."
|
|
|
|
# Backend tests
|
|
echo ""
|
|
echo "📦 Testing backend..."
|
|
cd backend
|
|
source venv/bin/activate
|
|
pytest -v --cov=app --cov-report=html --cov-report=term
|
|
cd ..
|
|
|
|
# Frontend tests
|
|
echo ""
|
|
echo "📦 Testing frontend..."
|
|
cd frontend
|
|
npm test -- --run --coverage
|
|
cd ..
|
|
|
|
echo ""
|
|
echo "✅ All tests completed!"
|
|
echo ""
|
|
echo "Backend coverage report: backend/htmlcov/index.html"
|
|
echo "Frontend coverage report: frontend/coverage/index.html" |