arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1409.3176cs.SE
收藏

测试用例净化技术在故障定位中的应用

Test Case Purification for Improving Fault Localization

Jifeng Xuan, Martin Monperrus

摘要:

在软件开发中,查找和修复bug是非常耗时的活动。基于谱的故障定位是指根据测试用例的执行轨迹来确定源代码中的故障位置。失败的测试用例和它们的断言形成了被分析系统的失败行为的测试预言。本文提出了一种新的频谱驱动测试用例净化的概念,以提高故障定位。测试用例纯化的目标是将现有的测试用例分成小部分(称为纯化的测试用例),并增强测试预言机以进一步定位故障。结合原始故障定位技术(例如,Tarantula),测试用例净化结果更好地对程序语句进行排名。通过对6个开放源代码Java程序中的1800个错误的实验表明,测试用例净化可以有效地改进现有的错误定位技术。

英文摘要:

Finding and fixing bugs are time-consuming activities in software development. Spectrum-based fault localization aims to identify the faulty position in source code based on the execution trace of test cases. Failing test cases and their assertions form test oracles for the failing behavior of the system under analysis. In this paper, we propose a novel concept of spectrum driven test case purification for improving fault localization. The goal of test case purification is to separate existing test cases into small fractions (called purified test cases) and to enhance the test oracles to further localize faults. Combining with an original fault localization technique (e.g., Tarantula), test case purification results in better ranking the program statements. Our experiments on 1800 faults in six open-source Java programs show that test case purification can effectively improve existing fault localization techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑