Hi, I'm thinking about such a scenario for RPC con...
# general
f
Hi, I'm thinking about such a scenario for RPC consumer and provider: if consumer has pulished contract to the broker, and later in the integration test stage the consumer need to mock the dependency of the provider, can we directly generate mocked response based on the interaction rule in the contract so that the consumer don't need to write mock tests? I think it would be a benefit for the consumer, and a good point to persuade them to adopt contract testing. Has anyone tried this approach?
m
Yes, you can use the generated contracts as a stub server: https://github.com/pact-foundation/pact-stub-server I don’t know if it works with plugins though
f
It's really helpful. Thank you so much. I will see how it can be applied to our company's use case
👍 1