Added docker-based testing environment for neo4j integration testing.

This commit is contained in:
jay
2026-09-09 09:22:48 -04:00
parent a3d1fcfabc
commit a857953a80
3 changed files with 56 additions and 5 deletions
Executable
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
set -eou pipefail
case "${1:-dev}" in
dev) docker compose up -d --wait && docker compose exec test go test "${@:2}" ;;
ci) docker compose run --rm test go test "${@:2}" ;;
*)
echo "Usage: $0 [dev|ci] [go test arguments...]"
echo
echo "Commands:"
echo " dev Start services and run tests in the existing test container (default)."
echo " ci Execute tests in a new, one-off container and clean up."
echo
echo "Examples:"
echo " $0 dev ./... -v"
echo " $0 ci -run TestSpecificFunction"
exit 1
;;
esac