Recall & Review
beginner
What is contract testing in software development?
Contract testing is a method to ensure that two separate software components (like a client and a server) agree on how they communicate. It checks that the 'contract' or agreement between them is followed correctly.
Click to reveal answer
beginner
Why is contract testing important?
It helps catch problems early by verifying that each part of a system meets the agreed communication rules. This reduces bugs when different teams work on different parts and helps avoid integration issues.
Click to reveal answer
beginner
What are the two main sides in contract testing?
The two main sides are the provider (the service that offers data or functionality) and the consumer (the client that uses the service). Contract testing checks their interaction.
Click to reveal answer
intermediate
How does contract testing differ from end-to-end testing?
Contract testing focuses only on the communication between two parts, not the whole system. End-to-end testing checks the entire flow from start to finish, which is slower and more complex.
Click to reveal answer
beginner
What is a common tool used for contract testing?
One popular tool is Pact. It helps create and verify contracts between consumers and providers automatically.
Click to reveal answer
What does contract testing primarily verify?
✗ Incorrect
Contract testing checks that two parts of software agree on how they communicate, ensuring data exchange follows the contract.
Who are the two main participants in contract testing?
✗ Incorrect
Contract testing involves the provider (service) and consumer (client) to verify their communication contract.
Which testing type is faster and more focused: contract testing or end-to-end testing?
✗ Incorrect
Contract testing is faster and more focused because it tests only the communication between two parts, not the whole system.
What problem does contract testing help prevent?
✗ Incorrect
Contract testing helps prevent integration problems by ensuring services communicate correctly.
Which tool is commonly used for contract testing?
✗ Incorrect
Pact is a popular tool designed specifically for contract testing.
Explain in your own words what contract testing is and why it matters.
Think about how two friends agree on rules before playing a game.
You got /3 concepts.
Describe the roles of provider and consumer in contract testing and how they interact.
Imagine one person offers a service and another uses it.
You got /4 concepts.