all
I have a service written in go which communicates with a couple of other services via gRPC protocol. I want to write integration tests for my service but, I have no possibility to use real dependencies.
So, I need to mock the dependencies in some way.
For me, a perfect scenario looks like:
- I can run a mock-server and pass its address instead of a real dependency to my application
- I can register expected response for a specific call to the dependant service
- I can reset the mock-server to tear down the data after a test case.
I tried to use https://github.com/jekiapp/gripmock but it doesn't support all the protobuff syntax.
What can help with my problem? Maybe I'm completely wrong and there are best practices for integration testing of services communicating gRPC


