Comparing the defect reduction benefits of code inspection and test-driven development

Jerod W. Wilkerson, Jay F. Nunamaker, Rick Mercer

Research output: Contribution to journalArticlepeer-review

22 Scopus citations

Abstract

This study is a quasi experiment comparing the software defect rates and implementation costs of two methods of software defect reduction: code inspection and test-driven development. We divided participants, consisting of junior and senior computer science students at a large Southwestern university, into four groups using a two-by-two, between-subjects, factorial design and asked them to complete the same programming assignment using either test-driven development, code inspection, both, or neither. We compared resulting defect counts and implementation costs across groups. We found that code inspection is more effective than test-driven development at reducing defects, but that code inspection is also more expensive. We also found that test-driven development was no more effective at reducing defects than traditional programming methods.

Original languageEnglish (US)
Article number5750007
Pages (from-to)547-560
Number of pages14
JournalIEEE Transactions on Software Engineering
Volume38
Issue number3
DOIs
StatePublished - May 8 2012

Keywords

  • Agile programming
  • code inspections and walk throughs
  • empirical study
  • reliability
  • test-driven development
  • testing strategies

ASJC Scopus subject areas

  • Software

Fingerprint Dive into the research topics of 'Comparing the defect reduction benefits of code inspection and test-driven development'. Together they form a unique fingerprint.

Cite this