paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Selectively Combining Multiple Coverage Goals in Search-Based Unit Test Generation

在基于搜索的单元测试生成中选择性组合多个覆盖目标
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 2/10 · 该论文研究基于搜索的单元测试生成与多覆盖准则目标选择,属于软件测试/测试生成方向;与用户画像中的静态分析、Agentic 程序、LLM 与形式化验证/程序分析交叉等核心主题没有直接关联。引用 10 inbox
Zhichao Zhou, Yuming Zhou, Chunrong Fang, Zhenyu Chen, Yutian Tang
crossref: 2026-09-12

AI 速览

一句话:提出 smart selection,通过覆盖相关性与目标包含关系选择覆盖目标子集,减少多准则优化目标并提升基于搜索的单元测试生成效果。

单元测试用于保证程序基本单元的正确性,基于搜索的软件测试(SBST)通过遗传算法按指定覆盖准则(如分支覆盖)自动生成测试用例。单一覆盖准则难以刻画良好测试套件所需的多种性质,因此已有工作组合多个准则;但多准则引入多目标优化,可能反而降低某些准则的覆盖。论文提出 smart selection:根据覆盖准则间的相关性与覆盖目标间的包含关系,选择覆盖目标子集,以减少优化目标,同时避免遗漏各准则的性质。作者在400个Java类上使用三种先进遗传算法评估;在两种方法存在显著差异的类上,smart selection 平均优于组合全部目标的方法。

问题
单一覆盖准则无法保证测试套件具备多种性质,而直接组合多个覆盖准则会引入多目标优化并可能损害某些准则的覆盖。
方法
提出 smart selection,依据覆盖准则间的相关性和覆盖目标间的包含关系选择覆盖目标子集,以减少优化目标且不遗漏各准则性质。
评估
在400个Java类上使用三种先进遗传算法进行实验;在两种方法存在显著差异的类上,smart selection 平均优于组合全部覆盖目标的方法。
原文摘要(Abstract)

Unit testing is a critical part of software development process, ensuring the correctness of basic programming units in a program (e.g., a method). Search-based software testing (SBST) is an automated approach to generating test cases. SBST generates test cases with genetic algorithms by specifying the coverage criterion (e.g., branch coverage). However, a good test suite must have different properties, which cannot be captured by using an individual coverage criterion. Therefore, the state-of-the-art approach combines multiple criteria to generate test cases. As combining multiple coverage criteria brings multiple objectives for optimization, it hurts the test suites’ coverage for certain criteria compared with using the single criterion. To cope with this problem, we propose a novel approach named smart selection. Based on the coverage correlations among criteria and the coverage goals’ subsumption relationships, smart selection selects a subset of coverage goals to reduce the number of optimization objectives and avoid missing any properties of all criteria. We conduct experiments to evaluate smart selection on 400 Java classes with three state-of-the-art genetic algorithms. On average, smart selection outperforms combining all goals on of the classes having significant differences between the two approaches.

链接与引用

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

BibTeX
@inproceedings{paperbot7250,
  title = {Selectively Combining Multiple Coverage Goals in Search-Based Unit Test Generation},
  author = {Zhichao Zhou and Yuming Zhou and Chunrong Fang and Zhenyu Chen and Yutian Tang},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3556902}
}