SummarizerApp / scripts /run-tests.sh
ming
feat: add Docker containerization with Ollama integration
2043365
raw
history blame
499 Bytes
#!/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!"