volume_mute

Three Reasons Test-First Doesn't Guarantee Thorough Testing

publish date2026/06/04 11:00:3.916576 UTC

volume_mute

Test-first development and automated testing usually results in a large number of tests. However, this approach does not necessarily lead to thorough program testing. Which of the following are the three stated reasons? Select all that apply.

Correct Answer

(1) Programmers prefer programming to testing and sometimes take shortcuts — writing incomplete tests that do not check all possible exceptions
(2) Some tests can be very difficult to write incrementally — for example in a complex user interface where it is often difficult to write unit tests for display logic
(3) It is difficult to judge the completeness of a test set — crucial parts of the system may not be executed and so remain untested

Explanation

Three reasons test-first does not guarantee thorough testing: (1) programmers take shortcuts — writing incomplete tests that miss some exceptions; (2) some tests are hard to write incrementally — particularly for complex UI display logic; (3) completeness is hard to judge — you may have many tests yet crucial parts remain untested.

Reference

Software Engineering, Ian Sommerville, 9th edition


Quizzes you can take where this question appears