Simple & Fast
Write tests in a simple .gctf format. Execute in parallel for maximum speed.
Test your gRPC services with ease. Simple syntax, powerful assertions, comprehensive coverage.
curl -LO https://github.com/gripmock/grpctestify/releases/latest/download/grpctestify.sh
chmod +x grpctestify.sh
--- ADDRESS ---
localhost:4770
--- ENDPOINT ---
hello.HelloService/SayHello
--- REQUEST ---
{
"name": "World"
}
--- RESPONSE ---
{
"message": "Hello, World!"
}
Note: For unary RPC, use either RESPONSE
OR ASSERTS
, not both. Use RESPONSE with_asserts
if you need both.
./grpctestify.sh test.gctf
gRPC supports four main communication patterns, each with different testing approaches:
Simple one-to-one communication - perfect for basic operations
--- ENDPOINT ---
user.UserService/GetUser
--- REQUEST ---
{ "user_id": "123" }
--- RESPONSE ---
{ "user": { "id": "123", "name": "John" } }
Note: Use either RESPONSE
OR ASSERTS
for unary RPC.
Server sends multiple responses to a single request - ideal for real-time data
--- ENDPOINT ---
monitor.DeviceService/StreamMetrics
--- REQUEST ---
{ "device_id": "sensor_001" }
--- ASSERTS ---
.metric_type == "temperature"
.metric_value > 0
--- ASSERTS ---
.metric_type == "humidity"
.metric_value <= 100
Client sends multiple requests, server responds once - great for batch operations
--- ENDPOINT ---
upload.FileService/UploadChunks
--- REQUEST ---
{ "chunk": "data1", "sequence": 1 }
--- REQUEST ---
{ "chunk": "data2", "sequence": 2 }
--- RESPONSE ---
{ "status": "completed", "total_chunks": 2 }
Full duplex communication - perfect for real-time applications
--- ENDPOINT ---
chat.ChatService/StreamMessages
--- REQUEST ---
{ "message": "Hello", "user": "alice" }
--- ASSERTS ---
.message | contains("Hello")
.user == "alice"
--- REQUEST ---
{ "message": "Hi there!", "user": "bob" }
--- ASSERTS ---
.message | contains("Hi")
.user == "bob"
TLS, headers, and secure endpoints
--- TLS ---
ca_cert: ./certs/ca.pem
cert: ./certs/client.pem
--- REQUEST_HEADERS ---
authorization: Bearer token
x-api-key: your-secret-key
--- ENDPOINT ---
secure.SecureService/GetData
Install & Setup - Get gRPC Testify running on your system → Start Here
Write First Test - Create and run your first gRPC test → Learn More
Master Patterns - Learn unary, streaming, and error testing → Explore
Advanced Features - Parallel execution, plugins, and performance → Advanced
Enhanced .gctf editing with syntax highlighting, auto-completion, and validation → Install Extension
Interactive web interface for creating .gctf files with templates and examples → Try Generator
Begin your gRPC testing journey. Join thousands of developers who trust gRPC Testify for their testing needs.