• DocumentCode
    652636
  • Title

    A Replicated Experiment on the Effectiveness of Test-First Development

  • Author

    Fucci, Davide ; Turhan, Burak

  • Author_Institution
    Dept. of Inf. Process. Sci., Univ. of Oulu, Oulu, Finland
  • fYear
    2013
  • fDate
    10-11 Oct. 2013
  • Firstpage
    103
  • Lastpage
    112
  • Abstract
    Background: Test-first development (TF) is regarded as a development practice that can lead to better quality of software products, as well as improved developer productivity. By implementing unit tests before the corresponding production code, the tests themselves are the main driver to such improvements. The role of tests on the effectiveness of TF has been studied in a controlled experiment by Erdogmus et al. (i.e. original study). Aim: Our goal is to examine the impact of test-first (TF) development on product quality and developer productivity, specifically the role that tests play in it. Method: We replicated the original study´s controlled experiment by comparing an experimental group applying TF to a control group applying a test-last approach. We then carried out a correlation study in order to understand whether the number of tests is a good predictor for external quality and/or productivity. Results: Mann-Whitney tests did not show any significant difference between the two groups in terms of number of tests written (W=114.5, p=0.38), developers´ productivity (W=90, p=0.82) and external quality (W=81.55, p=0.53). In addition, while a significant correlation exists between the number of tests and productivity (Spearman´s ρ = 0.57, p<;0.001), none was found in the case of external quality (Spearman´s ρ = 0.17, p=0.18). Conclusions: We conclude that TF neither improves nor deteriorates the external quality or the productivity when compared to the test-last approach, leaving room for other variables to impact the effects of TF. This replication has partially confirmed the findings of the original study.
  • Keywords
    program testing; software quality; Mann-Whitney tests; TF development; control group; correlation study; developer productivity; development practice; production code; replicated experiment; software product quality; test-first development; test-last approach; Context; Correlation; Measurement; Productivity; Programming; Software; experiment replication; productivity; software quality; test-driven development;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Empirical Software Engineering and Measurement, 2013 ACM / IEEE International Symposium on
  • Conference_Location
    Baltimore, MD
  • ISSN
    1938-6451
  • Print_ISBN
    978-0-7695-5056-5
  • Type

    conf

  • DOI
    10.1109/ESEM.2013.15
  • Filename
    6681343