Spaces:
Sleeping
Sleeping
| # 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!" | |