Skip to content

Reference Documentation ​

Comprehensive technical reference for gRPC Testify. Use this section to look up specific APIs, commands, formats, and configurations.

📚 Reference Sections ​

🖥️ Command Line ​

Complete reference for all CLI commands, flags, and options.

📄 Test Files ​

Everything about .gctf test files.

🔧 Programming APIs ​

APIs for plugin development and integration.

📊 Report Formats ​

Output formats and customization.

🔍 Quick Reference ​

Essential Commands ​

bash
# Run tests
grpctestify tests/                    # Run all tests in directory
grpctestify test.gctf                 # Run single test
grpctestify tests/ --parallel 4       # Parallel execution

# Generate reports
grpctestify tests/ --log-format junit # JUnit XML report
grpctestify tests/ --log-format json  # JSON report

# Plugin management
grpctestify --list-plugins            # List available plugins
grpctestify --create-plugin my_plugin # Create new plugin

# System
grpctestify --version                 # Show version
grpctestify --help                    # Show help
grpctestify --update                  # Update to latest version

Test File Sections ​

php
--- ADDRESS ---          # Required: gRPC server address
--- ENDPOINT ---         # Required: service method
--- REQUEST ---          # Required: request payload
--- RESPONSE ---         # Optional: expected response
--- ASSERTS ---          # Optional: custom assertions
--- REQUEST_HEADERS ---   # Optional: gRPC headers
--- TIMEOUT ---          # Optional: request timeout
--- ERROR ---            # Optional: expected error

Common Assertions ​

bash
# Response validation
.status == "OK"                      # Status check
.data | length > 0                   # Array length
.user.email | test("@")              # Regex match
.timestamp | tonumber > 0            # Type conversion

# Custom assertions (via plugins)
assert_response_time_under "100ms"   # Performance assertion
assert_header_present "X-Request-ID" # Header validation
assert_status_code 200               # HTTP status

📖 Navigation Guide ​

For Developers ​

For Test Writers ​

For CI/CD Integration ​

For Operations ​

📝 Contributing to Reference ​

Help improve the documentation:

  1. Report inaccuracies - Found something wrong? Let us know
  2. Suggest improvements - Ideas for better organization
  3. Add examples - Real-world usage examples
  4. Update APIs - Keep pace with new features

This reference is designed to be your go-to resource for all technical details about gRPC Testify.

Released under the MIT License.