Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Consumer Driven Contract creation using PactJS #2766

Open
ruud opened this issue Jul 15, 2024 · 0 comments
Open

Support for Consumer Driven Contract creation using PactJS #2766

ruud opened this issue Jul 15, 2024 · 0 comments

Comments

@ruud
Copy link

ruud commented Jul 15, 2024

We would like to add an extra feature to the Test Runner: consumer driven contract testing/creation using PactJS. To learn more about contract testing, please visit https://pactflow.io/what-is-consumer-driven-contract-testing/.

Contract creation can be a tedious task. Without going too much into the advantages of Pact, we see a way to integrate this new feature into the way we work with the Modernweb Test Runner.

Creating mocks for the test runner's mock service is very similar to creating a contract. We would go so far as to say that creating a mock is directly related to creating a contract that can be used in Consumer Driven Contract testing. Therefore, if it were possible to integrate PactJS into the Mock Server, you as a Test Runner user would not have to do too much to start using it.

Currently, the Mock package from Modern Web uses MSW. Fortunately, PactFlow, which implements PacJS, has created an adapter for MSW, see https://github.com/pactflow/pact-msw-adapter.

So our suggestion is to integrate the adapter into the mock package. Before we go any further, and before we create a PR, we would like to hear your opinion on this proposal, and are looking forward to any other suggestions etc.

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

No branches or pull requests

1 participant