Files

21 lines
421 B
Bash

#!/bin/bash
# Script to start Redis and run tests
echo "Starting Redis with Docker Compose..."
docker-compose up -d redis
# Wait for Redis to be ready
echo "Waiting for Redis to be ready..."
until docker-compose exec redis redis-cli ping; do
echo "Waiting for Redis..."
sleep 2
done
echo "Redis is ready!"
# Run Redis tests
echo "Running Redis tests..."
npm test -- --testNamePattern="RedisService"
echo "Done!"