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

选择故障揭示突变体

Selecting Fault Revealing Mutants

Thierry Titcheu Chekam, Mike Papadakis, Tegawendé Bissyandé, Yves Le Traon, Koushik Sen

摘要:

突变体选择是指在大量的突变体中选择测试者应该使用的(少数)突变体的问题。鉴于此,我们研究了选择故障揭示突变体的问题,即,最有可能是可验证的突变体,并导致发现未知程序错误的测试用例。我们制定了两个变种这个问题:故障揭示突变体选择和故障揭示突变体优先级。我们认为,这些问题可以通过一组“静态”的程序功能来解决,并提出了一种机器学习方法,名为FaRM,学习选择和排名可重复和故障揭示突变体。涉及1,692个真实故障的实验结果表明,我们的方法在这两个检查问题的实际好处。我们的研究结果表明,FaRM实现了应用程序的成本和有效性之间的良好权衡(测量的故障显示)。我们还表明,FaRM优于所有现有的突变体选择方法,即,随机突变采样、选择性突变和缺陷预测(突变缺陷预测所指向的代码区域)。特别是,我们的研究结果表明,对于突变体选择,我们的方法比任何基线方法都多揭示了23%至34%的错误,而对于突变体优先级,它实现了更高的平均百分比,显示错误的中位数差异在4%和9%之间(来自随机突变体排序)。

英文摘要:

Mutant selection refers to the problem of choosing, among a large number of mutants, the (few) ones that should be used by the testers. In view of this, we investigate the problem of selecting the fault revealing mutants, i.e., the mutants that are most likely to be killable and lead to test cases that uncover unknown program faults. We formulate two variants of this problem: the fault revealing mutant selection and the fault revealing mutant prioritization. We argue and show that these problems can be tackled through a set of 'static' program features and propose a machine learning approach, named FaRM, that learns to select and rank killable and fault revealing mutants. Experimental results involving 1,692 real faults show the practical benefits of our approach in both examined problems. Our results show that FaRM achieves a good trade-off between application cost and effectiveness (measured in terms of faults revealed). We also show that FaRM outperforms all the existing mutant selection methods, i.e., the random mutant sampling, the selective mutation and defect prediction (mutating the code areas pointed by defect prediction). In particular, our results show that with respect to mutant selection, our approach reveals 23% to 34% more faults than any of the baseline methods, while, with respect to mutant prioritization, it achieves higher average percentage of revealed faults with a median difference between 4% and 9% (from the random mutant orderings).

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

↑