Advanced
Software Testing & QA
Q92 / 100
What is the danger of "overfitting" automated tests to the current implementation rather than the desired behavior?
Correct! Well done.
Incorrect.
The correct answer is A) Tests become brittle, failing on harmless refactors because they assert implementation details rather than observable behavior, increasing maintenance cost without adding confidence
A
Correct Answer
Tests become brittle, failing on harmless refactors because they assert implementation details rather than observable behavior, increasing maintenance cost without adding confidence
Explanation
Tests tightly coupled to internal structure (e.g. asserting exact private method calls) break whenever the implementation changes, even if the externally observable behavior is unchanged — a maintenance burden without proportional value.
Progress
92/100