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

保持突变测试套件与长期存在的突变体的一致性和相关性

Keeping Mutation Test Suites Consistent and Relevant with Long-Standing Mutants

Milos Ojdanic, Mike Papadakis, Mark Harman

摘要:

突变测试已经被证明是测试人员工具包中最强大的故障揭示工具之一。许多以前的工作隐含地假设它足以重新计算每个版本的突变套件。可悲的是,这使得突变结果不一致;每个版本的突变分数不能直接比较,这使得更难衡量测试的改进。此外,定期的代码更改意味着突变套件的相关性会随着时间的推移而自然降低。我们测量了4个非平凡系统中143,500个突变体的相关性,发现在过量时,52%降解。我们引入了突变脆性的措施,并使用它来审计软件系统和他们的突变套件。我们还演示了如何一致的建设长期存在的突变体套件可以确定一个任意的测试套件的突变体相关性的10倍的改善。我们的研究结果表明,研究界应避免重新计算突变体套件和重点,而是长期存在的突变体,从而提高突变测试的一致性和相关性。

英文摘要:

Mutation testing has been demonstrated to be one of the most powerful fault-revealing tools in the tester's tool kit. Much previous work implicitly assumed it to be sufficient to re-compute mutant suites per release. Sadly, this makes mutation results inconsistent; mutant scores from each release cannot be directly compared, making it harder to measure test improvement. Furthermore, regular code change means that a mutant suite's relevance will naturally degrade over time. We measure this degradation in relevance for 143,500 mutants in 4 non-trivial systems finding that, on overage, 52% degrade. We introduce a mutant brittleness measure and use it to audit software systems and their mutation suites. We also demonstrate how consistent-by-construction long-standing mutant suites can be identified with a 10x improvement in mutant relevance over an arbitrary test suite. Our results indicate that the research community should avoid the re-computation of mutant suites and focus, instead, on long-standing mutants, thereby improving the consistency and relevance of mutation testing.

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

↑