It is suggested that test-driven development (TDD) is one of the most fundamental practices in agile software development, which produces loosely coupled and highly cohesive code. However, how the TDD impacts on the structure of the program code have not been widely studied. This paper presents the results from a comparative case study of five small scale software development projects where the effect of TDD on program design was studied using both traditional and package level metrics. The empirical results reveal that an unwanted side effect can be that some parts of the code may deteriorate. In addition, the differences in the program code, between TDD and the iterative test-last development, were not as clear as expected. This raises the question as to whether the possible benefits of TDD are greater than the possible downsides. Moreover, it additionally questions whether the same benefits could be achieved just by emphasizing unit-level testing activities. © 2008 Springer-Verlag Berlin Heidelberg.
CITATION STYLE
Siniaalto, M., & Abrahamsson, P. (2008). Does test-driven development improve the program code? Alarming results from a comparative case study. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 5082 LNCS, pp. 143–156). https://doi.org/10.1007/978-3-540-85279-7_12
Mendeley helps you to discover research relevant for your work.