Does test-driven development improve the program code? Alarming results from a comparative case study

被引:0
作者
Siniaalto, Maria [1 ]
Abrahamsson, Pekka [2 ]
机构
[1] F Secure Oyj, Elektroniikkatie 3, FIN-90570 Oulu, Finland
[2] VTT Tech Res Ctr Finland, FIN-90571 Oulu, Finland
来源
BALANCING AGILITY AND FORMALISM IN SOFTWARE ENGINEERING | 2008年 / 5082卷
关键词
test-driven development; test-first programming; test-first development; agile software development; software quality;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 art 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.
引用
收藏
页码:143 / +
页数:3
相关论文
共 21 条
  • [1] Astels D., 2003, TEST DRIVEN DEV PRAC
  • [2] A validation of object-oriented design metrics as quality indicators
    Basili, VR
    Briand, LC
    Melo, WL
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1996, 22 (10) : 751 - 761
  • [3] Aim, fire
    Beck, K
    [J]. IEEE SOFTWARE, 2001, 18 (05) : 87 - 89
  • [4] BECK K, 2004, EXTREME PROGRAMMING
  • [5] BECK K, 2003, TEST DRIVEN EXAMPLE
  • [6] Boehm BW., 2004, BALANCING AGILITY DI
  • [7] A METRICS SUITE FOR OBJECT-ORIENTED DESIGN
    CHIDAMBER, SR
    KEMERER, CF
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1994, 20 (06) : 476 - 493
  • [8] Henderson-Sellers B., 1996, Object-Oriented Metrics, measures of complexity
  • [9] Using students as subjects - a comparative study of students and professionals in lead-time impact assessment
    Host M.
    Regnell B.
    Wohlin C.
    [J]. Empirical Software Engineering, 2000, 5 (3) : 201 - 214
  • [10] On the influence of test-driven development on software design
    Janzen, David S.
    Saiedian, Hossein
    [J]. 19TH CONFERENCE ON SOFTWARE ENGINEERING EDUCATION & TRAINING, PROCEEDINGS, 2006, : 141 - +