Empirical Software Engineering

, Volume 19, Issue 6, pp 1781–1808

Variation factors in the design and analysis of replicated controlled experiments

Three (dis)similar studies on inspections versus unit testing
Article

DOI: 10.1007/s10664-013-9262-z

Cite this article as:
Runeson, P., Stefik, A. & Andrews, A. Empir Software Eng (2014) 19: 1781. doi:10.1007/s10664-013-9262-z

Abstract

In formal experiments on software engineering, the number of factors that may impact an outcome is very high. Some factors are controlled and change by design, while others are are either unforeseen or due to chance. This paper aims to explore how context factors change in a series of formal experiments and to identify implications for experimentation and replication practices to enable learning from experimentation. We analyze three experiments on code inspections and structural unit testing. The first two experiments use the same experimental design and instrumentation (replication), while the third, conducted by different researchers, replaces the programs and adapts defect detection methods accordingly (reproduction). Experimental procedures and location also differ between the experiments. Contrary to expectations, there are significant differences between the original experiment and the replication, as well as compared to the reproduction. Some of the differences are due to factors other than the ones designed to vary between experiments, indicating the sensitivity to context factors in software engineering experimentation. In aggregate, the analysis indicates that reducing the complexity of software engineering experiments should be considered by researchers who want to obtain reliable and repeatable empirical measures.

Keywords

Formal experiments Replication Reproduction Experiment design Code inspection Unit testing 

Copyright information

© Springer Science+Business Media New York 2013

Authors and Affiliations

  • Per Runeson
    • 1
  • Andreas Stefik
    • 2
  • Anneliese Andrews
    • 3
  1. 1.Lund UniversityLundSweden
  2. 2.University of NevadaLas VegasUSA
  3. 3.University of DenverDenverUSA

Personalised recommendations