Is it possible to send in a gRPC request without the gRPC server running?
I know this may sound like a silly question and I know the answer is probably no... let me elaborate
In
Django, there's a
test client. It makes it possible to simulate requests in integration tests. So you don't have to start a Django server to test the API. I was wondering if there's something similar in gRPC? I'm using Go by the way
The goal is to implement transactional tests, so the database is rolled back after each test
- I am aware of bufconn.Listener which is nice but still needs to run the server separately. Should I start the server for every single test?
- Alternatively, I could test the handlers only
I am open to suggestions, thanks!