Files
bakery-ia/scripts/test.sh
2025-07-17 13:09:24 +02:00

16 lines
492 B
Bash
Executable File

#!/bin/bash
echo "🧪 Running tests for all services..."
# Run tests for each service
for service in auth training forecasting data tenant notification; do
echo "Testing $service service..."
if docker-compose ps | grep -q "${service}-service.*Up"; then
docker-compose exec -T ${service}-service python -m pytest tests/ -v || echo "Tests failed for $service"
else
echo "Service $service is not running, skipping tests"
fi
done
echo "✅ Test run completed"