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