Articles tagged spring-cloud-contract
Better Integration Testing With Spring Cloud Contract
![Better Integration Testing With Spring Cloud Contract](/assets-jekyll/blog/spring-cloud-contract/spring-cloud-contract-aad99fce88d62fc78060845c343bee6ba7b923f15c99a61b52c64e42cf412040.jpg)
Spring Cloud Contract was created as a way to help test interconnected microservices. Generally speaking, there are two options when testing microservices: 1) you can deploy the entire mesh of services in your integration tests and test against that, or 2) you can mock each service in your integration tests. Both of these options have serious drawbacks. The first, deploying the entire mesh of microservices for testing, has the obvious drawback of being difficult, if...