首页> 外文会议>IEEE International Symposium on Software Reliability Engineering >Improving search-based test suite generation with dynamic symbolic execution
【24h】

Improving search-based test suite generation with dynamic symbolic execution

机译:通过动态符号执行来改进基于搜索的测试套件的生成

获取原文

摘要

Search-based testing can automatically generate unit test suites for object oriented code, but may struggle to generate specific values necessary to cover difficult parts of the code. Dynamic symbolic execution (DSE) efficiently generates such specific values, but may struggle with complex datatypes, in particular those that require sequences of calls for construction. The solution to these problems lies in a hybrid approach that integrates the best of both worlds, but such an integration needs to adapt to the problem at hand to avoid that higher coverage in a few corner cases comes at the price of lower coverage in the general case. We have extended the Genetic Algorithm (GA) in the Evosuite unit test generator to integrate DSE in an adaptive approach where feedback from the search determines when a problem is suitable for DSE. In experiments on a set of difficult classes our adaptive hybrid approach achieved an increase in code coverage of up to 63% (11% on average); experiments on the SF100 corpus of roughly 9,000 open source classes confirm that the improvement is of practical value, and a comparison with a DSE tool on the Roops set of benchmark classes shows that the hybrid approach improves over both its constituent techniques, GA and DSE.
机译:基于搜索的测试可以自动为面向对象的代码生成单元测试套件,但是可能难以生成涵盖代码中困难部分所必需的特定值。动态符号执行(DSE)有效地生成了这样的特定值,但是可能会遇到复杂的数据类型,特别是那些需要构造调用序列的数据类型。解决这些问题的方法是采用一种混合方法,该方法综合了两个方面的优点,但这种集成需要适应当前的问题,以避免在某些极端情况下提高覆盖范围,而以通常情况下较低的覆盖范围为代价案子。我们已经扩展了Evosuite单元测试生成器中的遗传算法(GA),以将DSE集成到一种自适应方法中,其中来自搜索的反馈确定问题何时适合DSE。在一组困难类的实验中,我们的自适应混合方法使代码覆盖率提高了63%(平均11%)。在大约9,000个开源类的SF100语料库上进行的实验证实,这种改进具有实用价值,并且与Roops基准类集上的DSE工具进行比较后发现,混合方法在其构成技术GA和DSE上均得到了改进。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号