A dissection of the test-driven development process: does it really matter to test-first or to test-last?

Fucci, Davide and Erdogmus, Hakan and Turhan, Burak and Oivo, Markku and Juristo Juzgado, Natalia (2017). A dissection of the test-driven development process: does it really matter to test-first or to test-last?. "IEEE Transactions on Software Engineering", v. 43 (n. 7); pp. 597-614. ISSN 0098-5589. https://doi.org/10.1109/TSE.2016.2616877.

Description

Title: A dissection of the test-driven development process: does it really matter to test-first or to test-last?
Author/s:
  • Fucci, Davide
  • Erdogmus, Hakan
  • Turhan, Burak
  • Oivo, Markku
  • Juristo Juzgado, Natalia
Item Type: Article
Título de Revista/Publicación: IEEE Transactions on Software Engineering
Date: July 2017
ISSN: 0098-5589
Volume: 43
Subjects:
Freetext Keywords: Test-driven development; empirical investigation; process dimensions; external quality; productivity
Faculty: E.T.S. de Ingenieros Informáticos (UPM)
Department: Lenguajes y Sistemas Informáticos e Ingeniería del Software
Creative Commons Licenses: Recognition - No derivative works - Non commercial

Full text

[img]
Preview
PDF - Requires a PDF viewer, such as GSview, Xpdf or Adobe Acrobat Reader
Download (2MB) | Preview

Abstract

Background: Test-driven development (TDD) is a technique that repeats short coding cycles interleaved with testing. The developer first writes a unit test for the desired functionality, followed by the necessary production code, and refactors the code. Many empirical studies neglect unique process characteristics related to TDD iterative nature. Aim: We formulate four process characteristic: sequencing, granularity, uniformity, and refactoring effort. We investigate how these characteristics impact quality and productivity in TDD and related variations. Method: We analyzed 82 data points collected from 39 professionals, each capturing the process used while performing a specific development task. We built regression models to assess the impact of process characteristics on quality and productivity. Quality was measured by functional correctness. Result: Quality and productivity improvements were primarily positively associated with the granularity and uniformity. Sequencing, the order in which test and production code are written, had no important influence. Refactoring effort was negatively associated with both outcomes. We explain the unexpected negative correlation with quality by possible prevalence of mixed refactoring. Conclusion: The claimed benefits of TDD may not be due to its distinctive test-first dynamic, but rather due to the fact that TDD-like processes encourage fine-grained, steady steps that improve focus and flow.

More information

Item ID: 50842
DC Identifier: http://oa.upm.es/50842/
OAI Identifier: oai:oa.upm.es:50842
DOI: 10.1109/TSE.2016.2616877
Official URL: https://ieeexplore.ieee.org/document/7592412/
Deposited by: Memoria Investigacion
Deposited on: 19 Dec 2018 08:43
Last Modified: 19 Dec 2018 08:43
  • Logo InvestigaM (UPM)
  • Logo GEOUP4
  • Logo Open Access
  • Open Access
  • Logo Sherpa/Romeo
    Check whether the anglo-saxon journal in which you have published an article allows you to also publish it under open access.
  • Logo Dulcinea
    Check whether the spanish journal in which you have published an article allows you to also publish it under open access.
  • Logo de Recolecta
  • Logo del Observatorio I+D+i UPM
  • Logo de OpenCourseWare UPM