paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Scalable Approaches for Test Suite Reduction

可扩展的测试套件缩减方法
ICSE 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE)2019匹配度 2/10 · 该论文研究测试套件缩减,属于软件测试与调试领域,不涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析等用户核心方向。虽然测试缩减与程序分析有一定间接关联,但缺乏用户画像中强调的PL与AI交叉、形式化或LLM结合点。引用 62 inbox
Emilio Cruciani, Breno Miranda, Roberto Verdecchia, Antonia Bertolino
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出一类高效的相似度测试套件缩减方法,仅用测试用例输入,在保持故障检测能力的同时大幅提升效率。

测试套件缩减旨在从大规模测试套件中选取代表性子集,以降低回归测试成本;但现有技术常依赖代码覆盖率或规约模型等大规模系统中不易获得的工件,且开销过高。本文提出一族基于相似度的高效缩减方法,结合大数据领域算法与智能启发式,寻找分布均匀的测试用例子集;方法仅需测试用例本身(源代码或命令行输入),通用性强。作者评估四种方法,包括固定选择预算 B 的版本和保证固定覆盖率的版本。结果表明,其故障检测损失与当前最优技术相当,效率却显著提升;对超过 50 万条真实测试用例,最高效方法可在 10 秒内选出 B 条用例。

问题
大规模回归测试中测试套件缩减成本高,且现有方法依赖难以获取的覆盖率或规约模型等工件,如何高效选择代表性子集并保持故障检测能力?
方法
提出基于相似度的一族高效方法,借鉴大数据领域算法并设计智能启发式来寻找均匀分布的子集,仅以测试用例本身为输入,支持固定预算 B 与固定覆盖率两种模式。
评估
在真实大规模测试套件上评估四种方法,与当前最优技术比较故障检测损失和效率,并覆盖超过 50 万条测试用例的场景。
原文摘要(Abstract)

Test suite reduction approaches aim at decreasing software regression testing costs by selecting a representative subset from large-size test suites. Most existing techniques are too expensive for handling modern massive systems and moreover depend on artifacts, such as code coverage metrics or specification models, that are not commonly available at large scale. We present a family of novel very efficient approaches for similaritybased test suite reduction that apply algorithms borrowed from the big data domain together with smart heuristics for finding an evenly spread subset of test cases. The approaches are very general since they only use as input the test cases themselves (test source code or command line input).We evaluate four approaches in a version that selects a fixed budget B of test cases, and also in an adequate version that does the reduction guaranteeing some fixed coverage. The results show that the approaches yield a fault detection loss comparable to state-of-the-art techniques, while providing huge gains in terms of efficiency. When applied to a suite of more than 500K real world test cases, the most efficient of the four approaches could select B test cases (for varying B values) in less than 10 seconds.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@inproceedings{CrucianiMVB19,
  title = {Scalable Approaches for Test Suite Reduction},
  author = {Emilio Cruciani and Breno Miranda and Roberto Verdecchia and Antonia Bertolino},
  booktitle = {ICSE},
  year = {2019},
  doi = {10.1109/icse.2019.00055}
}