Detection or Isolation of Defects? An Experimental Comparison of Unit Testing and Code Inspection

  • Authors:
  • Per Runeson;Anneliese Andrews

  • Affiliations:
  • -;-

  • Venue:
  • ISSRE '03 Proceedings of the 14th International Symposium on Software Reliability Engineering
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Code inspections and white-box testing have both beenused for unit testing. One is a static analysis technique, theother a dynamic one, since it is based on executing testcases. Naturally, the question arises whether one is superiorto the other, or, whether either technique is bettersuited to detect or isolate certain types of defects. We investigatedthis question with an experiment with a focus ondetection of the defects (failures) and isolation of theunderlying sources of the defects (faults). The results indicatethat there exist significant differences for some of theeffects of using code inspection versus testing. White-boxtesting is more effective, i.e. detects significantly moredefects while inspection isolates the underlying source of alarger share of the defects detected. Testers spend significantlymore time, hence the difference in efficiency issmaller, and is not statistically significant. The two techniquesare also shown to detect and identify differentdefects, hence motivating the use of a combination of methods.