Skip to content

Instantly share code, notes, and snippets.

@rabingaire
Created March 9, 2020 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rabingaire/864a3195ca68563bdaaad7c922899407 to your computer and use it in GitHub Desktop.
Save rabingaire/864a3195ca68563bdaaad7c922899407 to your computer and use it in GitHub Desktop.
## Run Test Suite inside docker
tests:
@docker-compose -f docker-compose.yml up --build --abort-on-container-exit
@docker-compose -f docker-compose.yml down --volumes
## Run Integration Test
## Note: This command is intended to be executed within docker env
integration-tests:
@sh -c "while ! curl -s http://rabbitmq:15672 > /dev/null; do echo waiting for 3s; sleep 3; done"
go test -v ./...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment