16 lines
492 B
Bash
16 lines
492 B
Bash
|
|
#!/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"
|