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:
-
通过消息传递执行 CDC 的能力。
-
Ability to do CDC with messaging.
-
清晰易用,静态类型 DSL。
-
Clear and easy to use, statically typed DSL.
-
能够将当前 JSON 文件复制粘贴到契约中,并且只编辑其元素。
-
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 功能:在运行时会从 Nexus 或 Artifactory 自动下载 Stub。
-
Stub Runner functionality: The stubs are automatically downloaded at runtime from Nexus or Artifactory.
-
Spring Cloud 集成:集成测试不需要发现服务。
-
Spring Cloud integration: No discovery service is needed for integration tests.
-
能够通过 Docker 为任何语言和框架添加支持。
-
Ability to add support for any language & framework through Docker.