Home › Software Testing › Software Testing › tools_automation_cicd › Contract testing in microservices ensures that
Contract testing in microservices ensures that
AConsumers and providers agree on API contracts
BAll services use the same database engine
CAll services run on a single Kubernetes pod
DAll services share the same source repository
Answer & Solution
Correct answer: A. Consumers and providers agree on API contracts
Consumer-driven contract testing (e.g., Pact) verifies that producer APIs continue to satisfy the expectations of their consumers, catching breaking changes before deploy. It complements but does not replace integration tests.
Related questions
In Scrum, the 'Definition of Done' (DoD) typically includesTest pyramid (Mike Cohn) advocates forA 'flaky test' is a test thatBehaviour-driven development (BDD) tools commonly usePerformance testing in general is BROADER than load testing because it includesAccessibility testing primarily ensures thatPenetration testing is a form ofMutation testing measures the effectiveness of