Spaces:
Running
Running
File size: 499 Bytes
2043365 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/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!"
|