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

基于缺陷预测引导搜索的软件测试

Defect Prediction Guided Search-Based Software Testing

Anjana Perera, Aldeida Aleti, Marcel Böhme, Burak Turhan

摘要:

如今,大多数自动化测试生成器,例如基于搜索的软件测试(SBST)技术,都致力于实现高代码覆盖率。然而,高代码覆盖率不足以最大限度地提高发现的bug数量,特别是在测试预算有限的情况下。在本文中,我们提出了一个自动化的测试生成技术,也是由估计的源代码的缺陷程度的指导。代码中可能有更多缺陷的部分比缺陷较少的部分得到更多的测试预算。为了测量缺陷的程度,我们利用了Schwa,一种著名的缺陷预测技术。我们将我们的方法实现到EvoSuite中,EvoSuite是Java的最先进的SBST工具。我们在Defects4J基准测试上的实验证明了缺陷预测引导测试生成的效率提高,并证实了我们的假设,即在可能有缺陷的部件上花费更多的时间预算会增加在相同时间预算中发现的错误数量。

英文摘要:

Today, most automated test generators, such as search-based software testing (SBST) techniques focus on achieving high code coverage. However, high code coverage is not sufficient to maximise the number of bugs found, especially when given a limited testing budget. In this paper, we propose an automated test generation technique that is also guided by the estimated degree of defectiveness of the source code. Parts of the code that are likely to be more defective receive more testing budget than the less defective parts. To measure the degree of defectiveness, we leverage Schwa, a notable defect prediction technique. We implement our approach into EvoSuite, a state of the art SBST tool for Java. Our experiments on the Defects4J benchmark demonstrate the improved efficiency of defect prediction guided test generation and confirm our hypothesis that spending more time budget on likely defective parts increases the number of bugs found in the same time budget.

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

↑