pact-foundation

pact-ruby

pact-foundation

Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

AI 简介

Pact Ruby 是一个面向 Ruby 生态的消费者驱动契约测试(CDC)框架,用于在微服务架构中保障消费者与提供者之间的接口契约一致性。它提供 RSpec 风格的 DSL、支持 HTTP/gRPC/异步消息(如 Kafka)等多种传输协议的契约定义与验证,并通过本地 Mock 服务和 Pact Broker 集成实现双向验证。核心基于 pact-ffi 实现跨平台二进制兼容,支持 Pact V4 规范及混合交互类型。适用于 Ruby 微服务团队在 CI/CD 中自动化契约测试、解耦前后端开发、降低集成风险等场景。

Ruby
MIT License
2.2k
Stars
220
Forks
64
Watchers
4
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分59.03
默认分支master