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

Implement ProviderState generator to allow injecting parameters to Interactions #49

Open
hhhonzik opened this issue Feb 4, 2020 · 3 comments

Comments

@hhhonzik
Copy link

hhhonzik commented Feb 4, 2020

pact-jvm supports injecting parameters to Interactions thanks to clever usage of generators and ProviderState parameters as described here:

I would like to use Pact for our NodeJS provider, but this is a crucial feature and I am happy to work on a PR for this.

Is it possible to implement the generators with the same functionality as pact-jvm has it?

I think we'd just need to store the parameters we get from state preparation and implement proper generator.

@bethesque
Copy link
Member

I'd be very happy for you to work on this @hhhonzik.

You'll need to coordinate development between the pact-provider-verifier and pact-ruby projects. To do this, check them both out side by side, and then set the environment variable X_PACT_DEVELOPMENT=true in the pact-provider-verifier project before running bundle. This will cause the local copy of pact-ruby to be used instead of the gem dependency.

@slt
Copy link

slt commented Sep 13, 2022

Hi, I am very keen to get this working, and will pick up where @hhhonzik left off if needed, looks like the pull requests were fairly far along?

@slt
Copy link

slt commented Sep 15, 2022

I have added the remaining generators and some tests to the pact-ruby project

pact-foundation/pact-ruby#273

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

3 participants