QA Fundamentals · Middle · Question 11 of 75

Why is high code coverage alone not proof of good tests?

Show the answer

Correct answer: Code can run in tests without its results being checked

Explanation

A test that calls a function but asserts nothing still increases coverage. Mutation testing or reviewing assertions shows whether tests would actually catch bugs.

Further reading

Problem with a question

QA Fundamentals · Middle · question 11

Test yourself

Take the QA Fundamentals · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz