The problem that initiative aims to address revolves around the challenges and intricacies involved in integration testing, especially when dealing with microservices or external APIs. Integration testing, which verifies that different parts of a system work together as intended, can become highly complex and cumbersome when multiple services are involved. The contract testing approach proposes a solution to these challenges by focusing on verifying the interactions between services at the API level based on predefined contracts.

Required to dive into contract testing and say what we can achieve.

Details: Pact, Spring contract

import org.springframework.cloud.contract.spec.Contract; https://docs.pact.io/books https://habr.com/ru/articles/451132/ https://habr.com/ru/companies/testit-tms/articles/570544/ https://github.com/spring-cloud/spring-cloud-contract/blob/main/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/ContractProjectUpdater.java https://github.com/spring-cloud-samples/spring-cloud-contract-samples/blob/main/producer_java/src/test/java/contracts/beer/intoxication/1_sober.java https://github.com/spring-cloud-samples/spring-cloud-contract-nodejs/blob/sc-contract/contracts/1_shouldAddABook.yml https://softwaremill.com/contract-testing-with-pact/ https://medium.com/@ximna.inc/way-to-microservices-contract-testing-a-spring-pact-implementation-1140aff95d39

Pact Spring Cloud Contract

testdraft