Finding Failure-Inducing Changes Using Change Classification

Testing and code editing are interleaved activities during program development. When tests fail unexpectedly, the changes that caused the failure are not always easy to find. Change classification focuses programmer attention on those changes most likely to be failure-inducing. We define several classifiers that automatically label changes as Red, Yellow, or Green, indicating the likelihood that they have contributed to a test failure. We implemented our change classification tool JUnit/CIA as an extension to the JUnit component within Eclipse, and evaluated its effectiveness in two case studies. Initial results indicate that change classification succeeds in focusing programmer attention on failure-inducing changes, thus improving on manual debugging techniques. Furthermore, change classification can determine those changes that can be committed safely to a version control repository without breaking any tests, even if a developer’s local workspace contains failing tests.

By: Maximilian Stoerzer; Barbara G. Ryder; Xiaoxia Ren; Frank Tip

Published in: RC23729 in 2005

LIMITED DISTRIBUTION NOTICE:

This Research Report is available. This report has been submitted for publication outside of IBM and will probably be copyrighted if accepted for publication. It has been issued as a Research Report for early dissemination of its contents. In view of the transfer of copyright to the outside publisher, its distribution outside of IBM prior to publication should be limited to peer communications and specific requests. After outside publication, requests should be filled only by reprints or legally obtained copies of the article (e.g., payment of royalties). I have read and understand this notice and am a member of the scientific community outside or inside of IBM seeking a single copy only.

rc23729.pdf

Questions about this service can be mailed to reports@us.ibm.com .