Keploy as a gRPC testing framework
Keploy tests gRPC services by recording the HTTP/2 frames between client and server, capturing the serialised Protobuf messages and status codes exchanged, then replaying them during tests. There is no stub server to run and no mock service implementation to generate and maintain.
keploy record -c "./orders-service"What Keploy gives a gRPC team
Captured as HTTP/2 frames
Keploy reads the framed gRPC exchange beneath your generated client, recording the method path, request metadata, serialised messages, status code, and trailing metadata together.
- Below grpc-java, grpc-go, grpc-js, grpcio
- Serialised Protobuf captured verbatim
- Status codes and trailers preserved
- Streaming replays as an ordered sequence
Why gRPC integration tests slow teams down
The friction is rarely the assertions. It is everything around them — spinning up dependencies, keeping mocks honest, and repairing tests after every refactor.
Testing gRPC: by hand, with In-process stub server, or with Keploy
A stub server returns whatever your hand-written implementation says, and drifts the moment the upstream proto changes. Keploy replays the real response bytes, so re-recording surfaces the change.
Select any row for the full comparison, with code.
What you write for gRPC vs what Keploy records
All three produce the same assertion. Only the third still passes after the next refactor without anyone editing it.
This compiles against your checked-in proto, so it keeps passing after the payments team adds a required field your code now reads.
Clean and fast — and the response still comes from FakePaymentsServer, so the test can only be as accurate as that hand-maintained stub.
The Protobuf bytes and the trailing metadata are what the real payments service returned, so a proto change shows up as a diff on the next re-record.
Times are estimates for authoring one endpoint’s coverage from scratch, not measurements.
gRPC testing tools, compared
The options a team on service and platform integrations actually reaches for, and where each one genuinely wins. Select a row for the full comparison.
Assessments reflect each tool’s documented behaviour, not benchmark measurements.
Record your gRPC app once, replay it forever
Keploy sits below your gRPC process at the network layer. It watches the calls your app already makes, then serves them back on replay so tests run with no dependencies attached.
Keploy records a GET call to /api/v1/orders/{id} on a gRPC service and captures the dependency calls it makes.
gRPC clients Keploy records, driver by driver
Keploy captures gRPC at the wire protocol, so 5 of these 8 clients need no adapter, no test double, and no gRPC instance in CI.
- Auto-mocked
GoView page
google.golang.org/grpc clients and servers
- Auto-mocked
JavaView page
grpc-java and grpc-spring-boot-starter
- Auto-mocked
Node.jsView page
@grpc/grpc-js
- Auto-mocked
PythonView page
grpcio
- Auto-mocked
Spring BootView page
gRPC services alongside HTTP endpoints
- Partial
gRPC-Web
Browser calls proxied over HTTP/1.1
- Partial
Bidirectional streaming
Interleaved client and server frame sequences
- Partial
.NET
Grpc.Net.Client and ASP.NET Core gRPC
Your first gRPC test suite in under five minutes
Every command below runs against your existing gRPC service. Nothing in your source tree changes.
1Install the Keploy CLI
One binary on the recording machine. No interceptor is registered and no proto is regenerated.
curl -sSL https://keploy.io/install.sh | bash2Record with your dependencies reachable
Run the service as usual against real downstream gRPC services. Requests, responses, statuses, and trailers are captured.
keploy record -c "./orders-service"3Exercise the RPCs that matter
Drive the service through its own API, or call it directly with grpcurl. Both record the downstream calls it makes.
grpcurl -plaintext -d '{"order_id":"ord_1"}' localhost:50051 acme.orders.Orders/Confirm4Replay with dependencies switched off
Take the downstream services offline and run the suite. If replay passes, every RPC your code makes is answered by a recorded mock.
keploy test -c "./orders-service" --delay 10
Ready to try it on your own gRPC service?
Works with the rest of your gRPC stack
Keploy records at the network layer, so framework and driver choices inside your gRPC app do not change how it captures traffic.
Go
Client and server calls record below google.golang.org/grpc.
Java
grpc-java and the Spring Boot starter record identically.
Node.js
@grpc/grpc-js calls record as HTTP/2 frames.
Python
grpcio clients and servers need no stub implementation.
- Protocol Buffers
Protocol Buffers
Recorded as wire bytes, so serialisation is genuinely exercised.
Kubernetes
Record inside a pod; replay needs no service mesh or sidecar.
Testing the rest of your stack
- Languages
Keploy as a Go testing framework
Record a running Go binary once and get table-test-grade coverage with sqlmock-free database stubs and no httptest servers to maintain.
Read the guide - Languages
Keploy as a Java testing framework
Generate JUnit-grade integration tests for any JVM service by recording the traffic it already serves.
Read the guide - Languages
Keploy as a Node.js testing framework
Replace nock registrations and in-memory database fixtures with tests recorded from the traffic your Node service already serves.
Read the guide - Languages
Keploy as a Python testing framework
Turn the requests your Python service already handles into a pytest-grade regression suite, with every dependency mocked from the recording.
Read the guide - Frameworks
Keploy as a Spring Boot testing framework
Skip @SpringBootTest context loads and @MockBean wiring — record the running application and replay every layer from real traffic.
Read the guide - Message Queues
Keploy as a Apache Kafka testing framework
Test producers and consumers against recorded broker exchanges — no embedded Kafka, no Testcontainers cluster, no flaky poll loops.
Read the guide
Join our GlobalCommunity
Connect with developers worldwide. Follow updates, ask questions, share feedback, and ship faster with other Keploy builders.
“Best report of integration and API tests I've seen — which we don't get from RestAssured.”
G2“Future of microservices testing. I don't write tests now!”
G2 · 5/5“An amazing product that simplifies the automation.”
Gartner · 4.0