Lepingutestimine
Lepingutestimine, also known as contract testing, is a software testing technique used to ensure that different services in a distributed system communicate correctly. It focuses on verifying the interactions between a service consumer and a service provider based on their agreed-upon contract. A contract is a formal agreement that defines the expected structure and content of requests and responses exchanged between services.
The primary goal of lepingutestimine is to prevent integration issues that often arise in microservices architectures.
In practice, lepingutestimine involves creating tests for the consumer that define its expectations for the provider's