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

非充分测试集项目中类级随机变异选择的评估

Evaluating Random Mutant Selection at Class-Level in Projects with Non-Adequate Test Suites

Ali Parsai, Alessandro Murgia, Serge Demeyer

摘要:

变异测试是评估测试套件质量的标准技术。由于其计算密集的性质,已经提出了许多方法,使这种技术在实际情况下可行。在这些方法中,均匀随机突变体选择已被证明是简单和有前途的。然而,这方面的工作主要是在项目级分析突变样本的项目有足够的测试套件。在本文中,我们填补了这一缺乏经验验证分析类水平上的项目与不充分的测试套件的随机突变体选择。首先,我们证明了均匀随机突变体选择达不到预期的结果。然后,我们提出了一种新的方法称为加权随机突变体选择,产生更多的代表性突变体样本。最后,我们表明,具有代表性的突变体样本较大的项目具有高的测试充分性。

英文摘要:

Mutation testing is a standard technique to evaluate the quality of a test suite. Due to its computationally intensive nature, many approaches have been proposed to make this technique feasible in real case scenarios. Among these approaches, uniform random mutant selection has been demonstrated to be simple and promising. However, works on this area analyze mutant samples at project level mainly on projects with adequate test suites. In this paper, we fill this lack of empirical validation by analyzing random mutant selection at class level on projects with non-adequate test suites. First, we show that uniform random mutant selection underachieves the expected results. Then, we propose a new approach named weighted random mutant selection which generates more representative mutant samples. Finally, we show that representative mutant samples are larger for projects with high test adequacy.

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

↑