首页> 外文期刊>Software Engineering, IEEE Transactions on >Mutation-Driven Generation of Unit Tests and Oracles
【24h】

Mutation-Driven Generation of Unit Tests and Oracles

机译:变异驱动的单元测试和Oracle生成

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

摘要

To assess the quality of test suites, mutation analysis seeds artificial defects (mutations) into programs; a nondetected mutation indicates a weakness in the test suite. We present an automated approach to generate unit tests that detect these mutations for object-oriented classes. This has two advantages: First, the resulting test suite is optimized toward finding defects modeled by mutation operators rather than covering code. Second, the state change caused by mutations induces oracles that precisely detect the mutants. Evaluated on 10 open source libraries, our μtest prototype generates test suites that find significantly more seeded defects than the original manually written test suites.
机译:为了评估测试套件的质量,变异分析将人为的缺陷(变异)植入程序中;未检测到的突变表明测试套件存在缺陷。我们提出了一种自动化的方法来生成单元测试,以检测面向对象类的这些突变。这有两个优点:首先,对生成的测试套件进行了优化,以查找由变异算子建模的缺陷,而不是覆盖代码。其次,由突变引起的状态变化引起了预兆,这些预言准确地检测了突变体。通过对10个开源库进行评估,我们的μtest原型生成的测试套件比原始的手动编写的测试套件发现的种子缺陷要多得多。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号