首页> 外文会议> >Automatically identifying special and common unit tests for object-oriented programs
【24h】

Automatically identifying special and common unit tests for object-oriented programs

机译:自动识别面向对象程序的特殊和通用单元测试

获取原文

摘要

Developers often create common tests and special tests, which exercise common behaviors and special behaviors of the class under test, respectively. Although manually created tests are valuable, developers often overlook some special or even common tests. We have developed a new approach for automatically identifying special and common unit tests for a class without requiring any specification. Given a class, we automatically generate test inputs and identify common and special tests among the generated tests. Developers can inspect these identified tests and use them to augment existing tests. Our approach is based on statistical algebraic abstractions, program properties (in the form of algebraic specifications) dynamically inferred based on a set of predefined abstraction templates. We use statistical algebraic abstractions to characterize program behaviors and identify special and common tests. Our initial experience has shown that a relatively small number of common and special tests can be identified among a large number of generated tests and these identified tests expose common and special behaviors that deserve developers' attention.
机译:开发人员经常创建通用测试和特殊测试,它们分别行使被测类的通用行为和特殊行为。尽管手动创建的测试很有价值,但是开发人员经常忽略一些特殊甚至通用的测试。我们已经开发了一种新方法,可以自动识别某类的特殊和通用单元测试,而无需任何规范。给定一个类,我们将自动生成测试输入,并在生成的测试中识别常见和特殊的测试。开发人员可以检查这些已识别的测试,并使用它们来扩展现有测试。我们的方法基于统计代数抽象,基于一组预定义抽象模板可动态推断程序属性(以代数规范的形式)。我们使用统计代数抽象来表征程序行为并确定特殊和常见的测试。我们的初步经验表明,可以在大量生成的测试中识别相对较少的普通测试和特殊测试,而这些识别出的测试暴露了常见的和特殊的行为,值得开发人员注意。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号