How to test Go google cloud functions locally


(Joel) #1

So am new to my company also new to go. as of now. I am using visual studio code and we deploy all our code to google cloud app engine or cloud functions. i was told to deploy code to the cloud test it and then come back make necessary fixes. is there a better way to test my code locally instead of deploying every time? please point me in the right directions. for go language. Thanks


(Lutz Horn) #2

This question is off-topic in this forum since it is about Google Cloud Functions, not about Go, the programming language.

The official documentation about how to test Google Cloud Functions can be found here:

https://cloud.google.com/functions/docs/testing/test-overview