Intermediate
Software Engineering / SDLC / Agile
Q60 / 100
What is the purpose of "code coverage" metrics in testing, and what is a limitation of relying on them too heavily?
Correct! Well done.
Incorrect.
The correct answer is A) Code coverage measures the percentage of source code executed by tests, helping identify untested areas; however, high coverage doesn't guarantee tests are meaningful — code can be "executed" without actually verifying correct behavior
A
Correct Answer
Code coverage measures the percentage of source code executed by tests, helping identify untested areas; however, high coverage doesn't guarantee tests are meaningful — code can be "executed" without actually verifying correct behavior
Explanation
While useful for identifying gaps in testing, code coverage is a quantity metric, not a quality metric — tests can achieve high coverage while still failing to verify important behaviors or edge cases.
Progress
60/100