Why use Spring Cloud Contract?
Spring Cloud Contract 在多语言环境中运行非常出色。这个项目有很多真正有趣的功能。其中相当多的功能绝对使 Spring Cloud Contract Verifier 在消费者驱动契约 (CDC) 工具市场上脱颖而出。最有趣的功能包括:
Spring Cloud Contract works great in a polyglot environment. This project has a lot of really interesting features. Quite a few of these features definitely make Spring Cloud Contract Verifier stand out on the market of Consumer Driven Contract (CDC) tooling. The most interesting features include the following:
-
Ability to do CDC with messaging.
-
Clear and easy to use, statically typed DSL.
-
Ability to copy-paste your current JSON file to the contract and edit only its elements.
-
Automatic generation of tests from the defined contract.
-
Stub Runner functionality: The stubs are automatically downloaded at runtime from Nexus or Artifactory.
-
Spring Cloud integration: No discovery service is needed for integration tests.
-
Ability to add support for any language & framework through Docker.