CTFL_UK · Question #174
Which of the following are valid justifications for developers testing their own code during unit testing? (i) Their lack of independence is mitigated by independent testing during system and…
The correct answer is A. (i) and (ii). It is unlikely that developers will have a better understanding of the requirements than testers, partly because testers work closely with the user community (and may be drawn from it) and partly because developers seldom work with the complete set of requirements in a medium…
Question
Which of the following are valid justifications for developers testing their own code during unit testing? (i) Their lack of independence is mitigated by independent testing during system and acceptance testing. (ii)A person with a good understanding of the code can find more defects more quickly using white-box techniques. (iii)Developers have a better understanding of the requirements than testers. (iv)Testers write unnecessary incident reports because they find minor differences between the way in which the system behaves and the way in which it is specified to work.
Options
- A(i) and (ii)
- B(i) and (iv)
- C(ii) and (iii)
- D(iii) and (iv)
How the community answered
(40 responses)- A85% (34)
- B5% (2)
- C3% (1)
- D8% (3)
Explanation
It is unlikely that developers will have a better understanding of the requirements than testers, partly because testers work closely with the user community (and may be drawn from it) and partly because developers seldom work with the complete set of requirements in a medium to large development. Testers may raise incidents related to the difference between user expectations and the specification, but these are not unnecessary. Such issues are more likely to arise at the later stages of testing. Early testing (unit testing) is usually done most effectively by developers with a good understanding of the code and the development environment; they can be more efficient and more effective at this level. Later independent stages of testing offset any disadvantage from the lack of independence at unit testing level.
Topics
Community Discussion
No community discussion yet for this question.