API Design · Middle · Question 53 of 75
What are contract tests between a client and an API?
- ✓Correct answer: Tests that check both sides agree on requests and responses (e.g. consumer-driven contracts with Pact, or validating against OpenAPI)
- 2Legal contracts for API usage
- 3Load tests
Explanation
They catch incompatibilities earlier than full end-to-end tests and run faster.