Skip to content

feat: add core pact-compatibility-suite runner - #4

Draft
YOU54F wants to merge 1 commit into
masterfrom
feat/compat-suite-core
Draft

YOU54F wants to merge 1 commit into
masterfrom
feat/compat-suite-core

Conversation

@YOU54F

@YOU54F YOU54F commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Adds a Cucumber runner for the pact-compatibility-suite core features: everything in V1–V4 except V4/plugins. The steps drive libpact_ffi from the pact-ffi gem through the calls a client library makes, mirroring the pact-reference FFI runner.

PACT_COMPAT_SUITE=/path/to/pact-compatibility-suite compatibility-suite/run-core.sh

Results (local, macOS, Ruby 4.0)

189 scenarios: 188 passed, 1 skipped, 0 failed.

Area Features Result
HTTP consumer V1–V4 http_consumer 44/44
HTTP + message provider V1–V4 http_provider, V3/V4 message_provider 53/53
Messages V3/V4 message_consumer, V4 synchronous_message_consumer, V4 v4 23/23
Matching V3 http_matching, V3/V4 matching_rules 45/46 (1 known failure, skipped)
Generators V3 generators, V3 http_generators, V4 generators 23/23

Not run

  • Known pact_ffi failure (skipped, listed in KNOWN_FAILURES in core/support/env.rb): Supports a not empty matcher with binary data (negative case). The pact_ffi mock server reads a 0-byte request body as no body, so the notEmpty rule never sees it. The pact-reference FFI runner lists the same scenario as a known failure.
  • Suite's own @wip: the V3 message provider Kafka schema registry scenario.

Changes

  • compatibility-suite/core: support code (FFI bindings, model, recording HTTP server) and step definitions.
  • compatibility-suite/run-core.sh and README.
  • .github/workflows/compat-core.yml: runs the core features against the suite's main. This has not run in CI yet.
  • Gemfile: cucumber in a compatibility_suite group.

🤖 Generated with Claude Code

Cucumber runner for the V1-V4 compatibility suite features except
V4 plugins: HTTP consumer/provider, message consumer/provider,
synchronous messages, generators and matching. Steps drive libpact_ffi
from the pact-ffi gem through the calls a client library makes.

Run with compatibility-suite/run-core.sh (needs PACT_COMPAT_SUITE).
188 scenarios pass; one known pact_ffi failure is skipped with its
reason, and the suite's own @wip scenarios are excluded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant