diff --git a/tests/integration/run-integration.sh b/tests/integration/run-integration.sh new file mode 100755 index 0000000..5c6725b --- /dev/null +++ b/tests/integration/run-integration.sh @@ -0,0 +1,24 @@ +#!/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