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

利用状态感染条件检测等价突变体加速突变分析

Using State Infection Conditions to Detect Equivalent Mutants and Speed up Mutation Analysis

René Just, Michael D. Ernst, Gordon Fraser

摘要:

突变分析通过测量它们检测种子缺陷(突变体)的程度来评估测试套件和测试技术。尽管在研究中已经很好地建立了,但由于可扩展性问题,突变分析很少在实践中使用-每个代码语句有多个突变,导致大量的突变体,因此测试套件的执行。此外,使用突变来改进测试套件对于等价的突变体是徒劳的,这意味着不存在将它们与原始程序区分开的测试用例。本文介绍了两种基于状态感染条件的优化方法,确定测试执行的条件,在突变体上执行相同的操作是否会导致不同的状态。首先,冗余的测试执行可以通过监视状态感染条件来避免,从而导致整体性能的提高。其次,状态感染条件可以帮助识别等效突变体,从而指导改进测试套件的努力。

英文摘要:

Mutation analysis evaluates test suites and testing techniques by measuring how well they detect seeded defects (mutants). Even though well established in research, mutation analysis is rarely used in practice due to scalability problems --- there are multiple mutations per code statement leading to a large number of mutants, and hence executions of the test suite. In addition, the use of mutation to improve test suites is futile for mutants that are equivalent, which means that there exists no test case that distinguishes them from the original program. This paper introduces two optimizations based on state infection conditions, i.e., conditions that determine for a test execution whether the same execution on a mutant would lead to a different state. First, redundant test execution can be avoided by monitoring state infection conditions, leading to an overall performance improvement. Second, state infection conditions can aid in identifying equivalent mutants, thus guiding efforts to improve test suites.

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

↑