#!/bin/bash # Integration Test Runner # Ensures services are running before running integration tests echo "๐Ÿ” Checking service availability..." # Check CouchDB if ! curl -s http://localhost:5984/ > /dev/null 2>&1; then echo "โŒ CouchDB not available at localhost:5984" exit 1 fi # Check Frontend if ! curl -s http://localhost:8080/ > /dev/null 2>&1; then echo "โš ๏ธ Frontend not available at localhost:8080" echo " Starting services..." # Could add auto-start logic here fi echo "โœ… Services are available" echo "๐Ÿงช Running integration tests..." bun run test:integration