首页> 外文会议>Tests and proofs >Generating Test Suites with Augmented Dynamic Symbolic Execution
【24h】

Generating Test Suites with Augmented Dynamic Symbolic Execution

机译:生成具有增强动态符号执行功能的测试套件

获取原文
获取原文并翻译 | 示例

摘要

Unit test generation tools typically aim at one of two objectives: to explore the program behavior in order to exercise automated oracles, or to produce a representative test set that can be used to manually add oracles or to use as a regression test set. Dynamic symbolic execution (DSE) can efficiently explore all simple paths through a program, exercising automated oracles such as assertions or code contracts. However, its original intention was not to produce representative test sets. Although DSE tools like Pex can retain subsets of the tests seen during the exploration, customer feedback revealed that users expect different values than those produced by Pex, and sometimes also more than one value for a given condition or program path. This threatens the applicability of DSE in a scenario without automated oracles. Indeed, even though all paths might be covered by DSE, the resulting tests are usually not sensitive enough to make a good regression test suite. In this paper, we present augmented dynamic symbolic execution, which aims to produce representative test sets with DSE by augmenting path conditions with additional conditions that enforce target criteria such as boundary or mutation adequacy, or logical coverage criteria. Experiments with our Apex prototype demonstrate that the resulting test cases can detect up to 30% more seeded defects than those produced with Pex.
机译:单元测试生成工具通常针对以下两个目标之一:探索程序行为以执行自动化的Oracle,或生成可用于手动添加Oracle或用作回归测试集的代表性测试集。动态符号执行(DSE)可以有效地探索程序中的所有简单路径,从而行使断言或代码协定之类的自动预言。但是,其初衷不是生产代表性的测试仪。尽管像Pex这样的DSE工具可以保留在探索过程中看到的测试的子集,但是客户反馈显示,用户期望的值与Pex产生的值不同,对于给定的条件或程序路径,有时期望的值也可能超过一个。在没有自动预言的情况下,这威胁了DSE的适用性。确实,即使DSE可能涵盖了所有路径,但结果测试通常不够敏感,无法形成良好的回归测试套件。在本文中,我们提出了增强的动态符号执行,其目的是通过在路径条件上附加其他条件来增强DSE来生成具有代表性的测试集,这些条件会强制执行目标标准(例如边界或突变充分性或逻辑覆盖标准)。使用我们的Apex原型进行的实验表明,与用Pex生成的缺陷相比,生成的测试用例可以检测到多达30%的种子缺陷。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号