#!/bin/bash # Test runner script for Docker environment set -e echo "๐Ÿงช Running tests in Docker environment..." # Build test image echo "๐Ÿ“ฆ Building test image..." docker build -t summarizer-backend-test . # Run tests echo "๐Ÿš€ Running tests..." docker run --rm \ -v "$(pwd)/tests:/app/tests:ro" \ -v "$(pwd)/app:/app/app:ro" \ -v "$(pwd)/pytest.ini:/app/pytest.ini:ro" \ summarizer-backend-test \ pytest tests/ -v --cov=app --cov-report=term-missing echo "โœ… Tests completed!"