An example of writing tests for a gRPC server.
-
Install protobuf compiler and the plugin for Go.
$ brew install protobuf $ go get github.com/golang/protobuf/protoc-gen-go $ # Run the following if you haven't done so already. $ export PATH="$PATH:$(go env GOPATH)/bin"
-
Run the tests.
$ make test