paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Mitigating the effects of flaky tests on mutation testing

缓解不稳定测试对变异测试的影响
ISSTA Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis2019匹配度 2/10 · 论文研究变异测试中 flaky test 的处理,属于动态软件测试/测试可靠性方向,与用户关注的静态分析、LLM/Agent 程序分析、浮点程序分析及贝叶斯程序分析均无直接交集。虽然 flaky 测试涉及非确定性,但本文目标和方法与研究方向核心不匹配。引用 55 inbox
August Shi, Jonathan Bell, Darko Marinov
crossref: 2026-09-12

AI 速览

一句话:提出在变异测试全流程中策略性重跑测试以管理 flaky 测试的技术,并在 PIT 中实现,大幅减少未知变异体。

变异测试广泛用于评估测试套件质量,但它隐含假设测试具有确定性:同一测试在相同被测代码上的覆盖与杀死变异体的结果应稳定。然而,flaky 测试会非确定性地改变结果,使变异分数不可靠。论文指出,重复执行时变异分数平均可相差四个百分点,且 9% 的变异体-测试对状态未知。为此,作者提出贯穿变异测试过程的 flaky 性管理技术,核心是基于策略性重跑测试,并修改开源变异测试工具 PIT 以实现这些技术。在 30 个项目上的评估表明,该方法将“未知”(flaky)变异体数量减少了 79.4%。

问题
变异测试默认测试行为确定,但 flaky 测试会使覆盖和杀死变异体的结果不稳定,导致变异分数不可靠、部分变异体状态未知。
方法
提出在变异测试全流程中管理 flaky 性的技术,主要依赖策略性重跑测试,并通过修改开源工具 PIT 实现。
评估
在 30 个项目上评估,将“未知”(flaky)变异体数量降低 79.4%。
原文摘要(Abstract)

Mutation testing is widely used in research as a metric for evaluating the quality of test suites. Mutation testing runs the test suite on generated mutants (variants of the code under test), where a test suite kills a mutant if any of the tests fail when run on the mutant. Mutation testing implicitly assumes that tests exhibit deterministic behavior, in terms of their coverage and the outcome of a test (not) killing a certain mutant. Such an assumption does not hold in the presence of flaky tests, whose outcomes can non-deterministically differ even when run on the same code under test. Without reliable test outcomes, mutation testing can result in unreliable results, e.g., in our experiments, mutation scores vary by four percentage points on average between repeated executions, and 9% of mutant-test pairs have an unknown status. Many modern software projects suffer from flaky tests. We propose techniques that manage flakiness throughout the mutation testing process, largely based on strategically re-running tests. We implement our techniques by modifying the open-source mutation testing tool, PIT. Our evaluation on 30 projects shows that our techniques reduce the number of "unknown" (flaky) mutants by 79.4%.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5392,
  title = {Mitigating the effects of flaky tests on mutation testing},
  author = {August Shi and Jonathan Bell and Darko Marinov},
  booktitle = {ISSTA},
  year = {2019},
  doi = {10.1145/3293882.3330568}
}