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 versionTest 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 errorCommon 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 ​
- Start with Programming APIs for integration
- Reference State API for data access
For Test Writers ​
- Begin with Test Files
- Follow Best Practices
For CI/CD Integration ​
- Review Command Line
- Configure Report Formats
For Operations ​
- Use Command Line for automation
- Check Command Line for deployment
- Monitor with Report Formats
🔗 Related Documentation ​
- Getting Started - Installation and first steps
- Guides - Step-by-step tutorials
- Examples - Real-world implementations
- Plugin Development - Create custom plugins
- Advanced Topics - Deep technical content
📝 Contributing to Reference ​
Help improve the documentation:
- Report inaccuracies - Found something wrong? Let us know
- Suggest improvements - Ideas for better organization
- Add examples - Real-world usage examples
- Update APIs - Keep pace with new features
This reference is designed to be your go-to resource for all technical details about gRPC Testify.