一句话:提出由缺陷预测引导的搜索式测试生成,按代码缺陷可能性分配测试预算。
当前多数自动化测试生成器,尤其是基于搜索的软件测试(SBST),以最大化代码覆盖率为主,但在有限测试预算下,高覆盖率并不能保证发现更多缺陷。本文提出一种受缺陷预测引导的自动化测试生成技术:先估计源代码不同部分的缺陷程度,再将更多测试预算分配给更可能含有缺陷的代码区域。缺陷程度通过著名缺陷预测技术 Schwa 度量,从而使测试资源分配与缺陷倾向对齐。摘要未报告具体实验规模和缺陷发现提升幅度,其核心贡献在于将缺陷预测信号引入 SBST 的搜索目标与预算分配。
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.