How to Run docker-compose up and then from a different terminal: go test -v . More explanations can be found in this post: http://www.zakariaamine.com/2020-04-04/testing-gcp-pusub-golang