Skip to main content
QUICK REVIEW

[论文解读] A Snowballing Literature Study on Test Amplification

Benjamin Danglot, Oscar Luis Vera-Pérez|arXiv (Cornell University)|May 30, 2017
Software Engineering ResearchComputer Science被引用 7
一句话总结

本文提出了「测试增强」这一新兴研究领域,通过利用现有测试中的领域知识和断言(oracle)来改进手动编写的测试,从而提升软件测试的效果。通过滚雪球式文献综述,作者识别出四种核心技术:生成新的测试变体、适应代码变更的测试修改、修改测试执行过程,以及重构已有测试——为未来在自动化测试改进方面的研究与实践提供了结构化基础。

ABSTRACT

The adoption of agile development approaches has put an increased emphasis on developer testing, resulting in software projects with strong test suites. These suites include a large number of test cases, in which developers embed knowledge about meaningful input data and expected properties in the form of oracles. This article surveys various works that aim at exploiting this knowledge in order to enhance these manually written tests with respect to an engineering goal (e.g., improve coverage of changes or increase the accuracy of fault localization). While these works rely on various techniques and address various goals, we believe they form an emerging and coherent field of research, which we call `test amplification'. We devised a first set of papers from DBLP, looking for all papers containing `test' and `amplification' in their title. We reviewed the 70 papers in this set and selected the 4 papers that fit our definition of test amplification. We use these 4 papers as the seed for our snowballing study, and systematically followed the citation graph. This study is the first that draws a comprehensive picture of the different engineering goals proposed in the literature for test amplification. In particular, we note that the goal of test amplification goes far beyond maximizing coverage only. We believe that this survey will help researchers and practitioners entering this new field to understand more quickly and more deeply the intuitions, concepts and techniques used for test amplification.

研究动机与目标

  • 定义并确立「测试增强」作为一项连贯的、新兴的软件工程研究领域。
  • 通过引用图谱的回溯与顺延滚雪球法,系统性地综述并分类现有关于测试增强的文献。
  • 识别并分类测试增强中的关键技术与工程目标,例如提升测试覆盖度、故障定位能力与执行鲁棒性。
  • 指出研究空白,包括测试增强与传统测试生成之间缺乏系统性比较。
  • 通过评估该领域中工具与实验数据的可获取性,倡导开放科学与可复现研究。

提出的方法

  • 以 DBLP 中包含标题含「test」和「amplification」的 70 篇论文作为初始种子集,筛选出 4 篇符合研究范围的核心论文。
  • 通过分析这 4 篇种子论文的参考文献进行回溯滚雪球,采用双人独立评审并基于共识决定纳入标准。
  • 利用 Google Scholar 的「被引用」功能进行顺延滚雪球,识别近期贡献并扩展文献集合。
  • 迭代执行滚雪球过程,直至无法发现新的相关论文,确保文献集合的完整性。
  • 将最终的 47 篇论文划分为四类:添加新的测试变体、修改测试执行、为代码变更生成测试,以及重构已有测试。
  • 通过检查论文中引用的 URL 是否提供公开代码或数据,评估工具与可复现性,共识别出 17 个有效的开放科学链接。

实验结果

研究问题

  • RQ1推动测试增强研究的核心工程目标是什么?它们如何超越基本的测试覆盖度?
  • RQ2在测试增强中,哪些技术被最广泛使用?它们在利用已有测试知识方面的差异是什么?
  • RQ3文献中的术语使用是否一致?这种不一致性对系统性文献综述带来了何种挑战?
  • RQ4测试增强工具与实验结果在多大程度上公开可用,以支持可复现性与基准测试?
  • RQ5在推动测试增强发展为成熟研究领域方面,存在哪些关键的开放研究挑战与机遇?

主要发现

  • 本研究识别出 47 篇关于测试增强的论文,其中 2014 年出现显著高峰,表明该领域研究兴趣持续增长。
  • 绝大多数研究(47 篇中的 30 篇)聚焦于 Java 程序,而 C 语言与 JavaScript 语言研究相对不足,表明当前研究存在语言偏向。
  • 搜索启发式方法与符号执行是最广泛使用的技术,各自出现在 12 项研究中;而 concolic 执行与执行修改仅在各 5 项研究中使用。
  • 在 47 篇论文中仅有 17 篇提供了公开可用的工具或数据,凸显了开放科学与可复现性方面的显著差距。
  • 该领域仍处于起步阶段,尚未开展测试增强与传统测试生成之间的系统性比较,作者将其识别为关键研究空白。
  • 测试增强技术覆盖多样化目标:提升测试覆盖度、增强故障定位能力、检测数据竞争,以及支持混合的符号-具体执行。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。