This is an open-ended question and depends a lot on the granularity of the tests you want. We have unit tests that test the service class directly. Sometimes we start a service on a background thread and then connect to it from the test.
There is no premade test harness that I know of. This is an example of running the server in-process: reflection test <https://github.com/grpc/grpc/blob/master/test/cpp/end2end/proto_server_reflection_test.cc> . On Friday, November 3, 2023 at 11:16:35 AM UTC-7 smita deshpande wrote: > Hi, > > I am new to grpc, is there any documentation or examples explaining unit > testing of server side RPC calls/services? > > Thanks, > Smita > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/39271107-8be7-48ff-8471-2507c0165392n%40googlegroups.com.
