-
Notifications
You must be signed in to change notification settings - Fork 92
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
Pact-PHP 9.x.x - Is there any support multiple providers #237
Comments
Are these what you are looking for?
Note: this pull request is not reviewed and merge yet. |
@tienvx to answer you. Yes, I want this, but not sure How it works? Need to review more. However, let's see your PR will be approved. |
Yes, I am trying to make the PR small and easy to migrate to new version as possible. But I removed almost half of environment variables and only keep the one that make sense.
Pact moved from Ruby implementation to Rust implementation. You can find the reasons here. But it's still not perfect. There are some features are missing, so you can see in my PR there are still something related to Ruby. |
By the way, thanks for the PR @tienvx . It's such a large shift that I have no had the time to do a deep dive into the Rust implementation. It's needs to happen, just a huge shift |
@cfmack Do you have any plan for this? However, while I waiting for any support for this feature. I try to go with customizing PhpPactListener by myself. phpunit.xml
This is a temporary solution for me. @cfmack What do you think about this? |
That is a neat solution! |
If someone still wants to implement this in the now https://github.com/pact-foundation/pact-php/tree/release/9.x Please consider there is a request to update to phpunit 10 in that branch as well #338 which will impact the Listener functionality and therefore the proposed solution here otherwise support for multiple providers in available in v10.x beta, and in the mainline Going to close this request down for now but anyone feel free to give us a shout if they want to backport to 9.x, or if they have issues trying this out with multiple providers in v10.x |
Thanks for hardwork to create this package.
As we trying and look for more in pact-php. I did not see any example to switch or setup provider while run testing.
In my case, my app is frontend. It call to 2 or 3 services just need to generate the contracts for all.
Is it possible?
The text was updated successfully, but these errors were encountered: