Skip to content

chore(tests): add generators to interaction defn#1217

Merged
JP-Ellis merged 3 commits intomainfrom
chore/generator-compatibility-suite
Sep 3, 2025
Merged

chore(tests): add generators to interaction defn#1217
JP-Ellis merged 3 commits intomainfrom
chore/generator-compatibility-suite

Conversation

@JP-Ellis
Copy link
Copy Markdown
Contributor

@JP-Ellis JP-Ellis commented Sep 3, 2025

📝 Summary

Implement the generators-related compatibility suite.

🚨 Breaking Changes

🔥 Motivation

🔨 Test Plan

🔗 Related issues/PRs

Signed-off-by: JP-Ellis <josh@jpellis.me>
Signed-off-by: JP-Ellis <josh@jpellis.me>
@JP-Ellis JP-Ellis self-assigned this Sep 3, 2025
Copilot AI review requested due to automatic review settings September 3, 2025 06:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements generators-related compatibility test suites for Pact, adding support for V3 and V4 generator functionality. It extends the interaction definition system to handle generators in addition to existing matching rules.

  • Added generator support to the InteractionDefinition class for both request and response
  • Renamed parse_matching_rules to parse_rules to handle both matching rules and generators
  • Implemented comprehensive test suites for V3 and V4 generator features

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/compatibility_suite/util/interaction_definition.py Extended interaction definition to support generators and refactored rule parsing
tests/compatibility_suite/util/__init__.py Renamed function from parse_matching_rules to parse_rules for broader usage
tests/compatibility_suite/test_v4_generators.py New comprehensive test suite for V4 generator functionality
tests/compatibility_suite/test_v3_generators.py New comprehensive test suite for V3 generator functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: JP-Ellis <josh@jpellis.me>
@JP-Ellis JP-Ellis force-pushed the chore/generator-compatibility-suite branch from 2c3fb2e to 8fb18b4 Compare September 3, 2025 23:22
@JP-Ellis JP-Ellis merged commit b4b2d76 into main Sep 3, 2025
126 of 130 checks passed
@JP-Ellis JP-Ellis deleted the chore/generator-compatibility-suite branch September 3, 2025 23:48
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.

v4/generators.feature v3/generators.feature

2 participants