Title | JExample: Exploiting Dependencies Between Tests to Improve Defect Localization |
Publication Type | Conference Paper |
Year of Publication | 2008 |
Authors | Kuhn, A, Rompaey BV, Hänsenberger L, Nierstrasz O, Demeyer S, Gaelli M, Van Leemput K |
Editor | Abrahamsson, P |
Conference Name | Proceedings {XP}'08 (9th International Conference on Extreme Programming and Agile Processes in Software Engineering |
Date Published | apr |
Publisher | Springer-Verlag |
ISBN Number | 978-3-540-68254-7 |
Abstract | To quickly localize defects, we want our attention to be focussed on relevant failing tests. We propose to improve defect localization by exploiting dependencies between tests, using a JUnit extension called JExample. In a case study, a monolithic white-box test suite for a complex algorithm is refactored into two traditional JUnit style tests and to JExample. Of the three refactorings, JExample reports five times fewer defect locations and slightly better performance (-8-12%), while having similar maintenance characteristics. Compared to the original implementation, JExample greatly improves maintainability due the improved factorization following the accepted test quality guidelines. As such, JExample combines the benefits of test chains with test quality aspects of JUnit style testing. |
DOI | http://dx.doi.org/10.1007/978-3-540-68255-4_8 |