kanban-app/scripts/test.sh

28 lines
523 B
Bash
Raw Permalink Normal View History

#!/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"