Contract testing is a complementary technique to functional testing and replaces some integration and end-to-end tests, not tests for individual services. This post explains the fine line between contract testing and testing the implementation of a provider service. It focuses on scenarios in HTTP-based integrations, highlighting what should and should not be included in contract tests to avoid brittle tests and misalignments in expectations between consumers and providers. The discussion emphasizes only asking for necessary properties to maintain flexibility and adaptability.
Sort: