QA Fundamentals · Middle · Question 22 of 75
What is a risk of mocking too much?
- 1Tests become too slow to run on every commit
- 2Mocks make code coverage numbers drop sharply
- 3Tests pass while the real integration is broken
Show the answer
Correct answer: Tests pass while the real integration is broken
Explanation
A mock encodes assumptions about the other side. If the real API changes, the mocked tests stay green. Integration or contract tests catch that gap.