[英]How to trigger producer contract test automatically if consumer contract changes
If the consumer makes a change which can break the contract test can only be identified if producer is also build but if we don't build the producer the wrong consumer will be released to production.如果消费者做出了可能违反合同的更改,则只能在生产者也构建时才能确定测试,但如果我们不构建生产者,错误的消费者将被释放到生产中。
Is there an approach which can be followed to overcome these type of scenarios.是否有可以遵循的方法来克服这些类型的场景。
Yes, there is definitely an approach!是的,绝对有办法! We go into length about this on our article how to build an effective Pact pipeline .我们 go 在我们的文章如何构建有效的 Pact 管道上长篇大论。
Some of the key tips described in the article:文章中描述的一些关键提示:
can-i-deploy
to prevent consumers/providers releasing a change that will break the integration您应该使用can-i-deploy
来防止消费者/提供者发布会破坏集成的更改
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.