Table of Contents
Advances in Software Engineering
Volume 2011 (2011), Article ID 492757, 18 pages
Research Article

Bug Localization in Test-Driven Development

1Dipartimento di Ingegneria dell'Informazione, Seconda Università di Napoli Via Roma, 81031 Aversa (CE), Italy
2Laboratorio ITeM “C. Savy”, Consorzio CINI, Via Cinthia-Edificio 1, 80126 Napoli, Italy
3Dipartimento di Informatica e Sistemistica, Università di Napoli Federico II, Via Claudio 21, 80125 Napoli, Italy

Received 30 December 2010; Accepted 28 March 2011

Academic Editor: Hossein Saiedian

Copyright © 2011 Massimo Ficco et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Software development teams that use agile methodologies are increasingly adopting the test-driven development practice (TDD). TDD allows to produce software by iterative and incremental work cycle, and with a strict control over the process, favouring an early detection of bugs. However, when applied to large and complex systems, TDD benefits are not so obvious; manually locating and fixing bugs introduced during the iterative development steps is a nontrivial task. In such systems, the propagation chains following the bugs activation can be unacceptably long and intricate, and the size of the code to be analyzed is often too large. In this paper, a bug localization technique specifically tailored to TDD is presented. The technique is embedded in the TDD cycle, and it aims to improve developers' ability to locate bugs as soon as possible. It is implemented in a tool and experimentally evaluated on newly developed Java programs.