Skip to content

test(compat-ffi): scenarios for matching rules combined with OR, incl. FFI integration JSON - #31

Draft
YOU54F wants to merge 2 commits into
feat/compat-suite-ffi-pluginsfrom
feat/compat-ffi-or-matchers
Draft

YOU54F wants to merge 2 commits into
feat/compat-suite-ffi-pluginsfrom
feat/compat-ffi-or-matchers

Conversation

@YOU54F

@YOU54F YOU54F commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

Stacked on #19 (FFI compatibility suite with plugins).

  • Shared compatibility suite scenarios for matching rules combined with OR (the same scenarios as test(compat): compatibility suite scenarios for matching rules combined with OR #30).
  • FFI-only features/ffi/integration_json.feature and tests/integration_json.rs. These cover rules defined with integration JSON through pactffi_with_body (for example pact:matcher:combine), which the shared suite can't express because it defines rules in the Pact file format.

CI

This branch doesn't contain pact-foundation#601, so the library built from this tree can't pass integration_json. A temporary workflow (compat-ffi-or-release.yml, revert before merge) runs those features against the 0.5.13-or.1 prerelease (release).

Once pact-foundation#601 lands, drop that workflow and run integration_json in the main compat-ffi job.

🤖 Generated with Claude Code

YOU54F and others added 2 commits November 9, 2026 17:23
…mbined with OR

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tcher:combine

The shared compatibility suite defines matching rules in the Pact file format, so it can't
exercise the integration JSON that FFI consumers send with pactffi_with_body. The new
integration_json test runs features/ffi/*: rules combined with OR are written to V3 and V4
Pact files, the mock server accepts any alternative (including null or an object with nested
rules, issue pact-foundation#249), OR rules replace a wrapped matcher and an invalid combine is rejected.

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