Overview - Contract testing basics
What is it?
Contract testing is a way to check that two parts of a software system agree on how they talk to each other. It focuses on the promises or 'contracts' between a service provider and a service consumer. Instead of testing the whole system, it tests only the communication points to make sure they match. This helps catch problems early when one side changes.
Why it matters
Without contract testing, changes in one part of a system can break others silently, causing bugs that are hard to find. It saves time and effort by catching mismatches early, reducing costly system failures. This keeps software reliable and teams confident when updating parts independently.
Where it fits
Before learning contract testing, you should understand basic software testing concepts and how services communicate (like APIs). After this, you can explore integration testing and end-to-end testing to see how contract testing fits into the bigger testing picture.