...
首页> 外文期刊>Software Testing, Verification and Reliability >Choosing the fitness function for the job: Automated generation of test suites that detect real faults
【24h】

Choosing the fitness function for the job: Automated generation of test suites that detect real faults

机译:选择作业的健身功能:自动生成检测真实故障的测试套件

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

获取外文期刊封面封底 >>

       

摘要

Search-based unit test generation, if effective at fault detection, can lower the cost of testing. Such techniques rely on fitness functions to guide the search. Ultimately, such functions represent test goals that approximate-but do not ensure-fault detection. The need to rely on approximations leads to two questions-can fitness functions produce effective tests and, if so, which should be used to generate tests? To answer these questions, we have assessed the fault-detection capabilities of unit test suites generated to satisfy eight white-box fitness functions on 597 real faults from the Defects4J database. Our analysis has found that the strongest indicators of effectiveness are a high level of code coverage over the targeted class and high satisfaction of a criterion's obligations. Consequently, the branch coverage fitness function is the most effective. Our findings indicate that fitness functions that thoroughly explore system structure should be used as primary generation objectives-supported by secondary fitness functions that explore orthogonal, supporting scenarios. Our results also provide further evidence that future approaches to test generation should focus on attaining higher coverage of private code and better initialization and manipulation of class dependencies. (c) 2019 John Wiley & Sons, Ltd.
机译:基于搜索的单元测试生成,如果有效的故障检测,可以降低测试成本。这些技术依赖于健身功能来指导搜索。最终,此类功能代表了近似的测试目标 - 但不确保故障检测。依赖近似的需要导致两个问题 - 可以使用有效的测试,如果是的话,应该用来生成测试?为了回答这些问题,我们评估了在缺陷4J数据库的597个真正故障上满足八个白盒健身功能的单元测试套件的故障检测功能。我们的分析发现,最强大的有效指标是对目标课程的高度级别覆盖,以及对标准义务的高度满意度。因此,分支覆盖健身功能是最有效的。我们的调查结果表明,彻底探索系统结构的健身功能应用作探索正交,支持方案的二级健身函数的主要生成目标。我们的结果还提供了进一步的证据表明,未来的测试生成方法应侧重于实现更高的私人代码覆盖以及更好地初始化和操纵类依赖项。 (c)2019 John Wiley&Sons,Ltd。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号