Practical Contract Testing with Spring Cloud Contract
summary
Claim: contract tests give unit-test speed with real integration validation by generating stubs and verifier tests. Implementation details: contracts written (Groovy or Java) feed Spring Cloud Contract's stub-runner and contract-verifier, stubs use WireMock and Rest Assured, generated producer tests run against mocked behavior, messaging contracts publish and consume test messages. Example tradeoffs: consumer-driven contracts, separate contract repo or producer-hosted contracts, developer training and process changes, not a silver bullet but prevents many late integration breaks.
AI-written summary · about
chapters (9)
- 0:00Start
- 7:17esting to the rescue!
- 9:08driven contract testing
- 11:47Java
- 16:46ISUMER TEST
- 24:06G: CONSUMER TEST
- 24:44G: PRODUCER TEST
- 25:41mid for microservices
- 26:20esting challenges
related talks
30mManaging APIs and Contracts in a Microservices World Using Spring Cloud Contract
45mREST and Messaging contracts with Spring Cloud Contract
01h 04mConsumer Driven Contracts and Your Microservice Architecture
23mContract Testing for Mobile Application Development
44mBuild Resilient Systems with Spring Cloud Contract and Testcontainers
42mInvestigating Contract Testing
50mFrom Contracts to Confidence: Spring Cloud Contract 5 in the Age of AI
52mBootiful Testing
