首页> 外文会议>Euromicro Conference on Software Engineering and Advanced Applications >Random Test Case Generation and Manual Unit Testing: Substitute or Complement in Retrofitting Tests for Legacy Code?
【24h】

Random Test Case Generation and Manual Unit Testing: Substitute or Complement in Retrofitting Tests for Legacy Code?

机译:随机测试案例生成和手动单元测试:替换或补充改装遗留码的测试?

获取原文

摘要

Unit testing of legacy code is often characterized by the goal to find a maximum number of defects with minimal effort. In context of restrictive time frames and limited resources, approaches for generating test cases promise increased defect detection effectiveness. This paper presents the results of an empirical study investigating the effectiveness of (a) manual unit testing conducted by 48 master students within a time limit of 60 minutes and (b) tool-supported random test case generation with Randoop. Both approaches have been applied on a Java collection class library containing 35 seeded defects. With the specific settings, where time and resource restrictions limit the performance of manual unit testing, we found that (1) the number of defects detected by random test case generation is in the range of manual unit testing and, furthermore, (2) the randomly generated test cases detect different defects than manual unit testing. Therefore, random test case generation seems a useful aid to jump start manual unit testing of legacy code.
机译:遗留代码的单元测试通常是目标,以找到最大努力的最大缺陷数。在限制时间框架和有限资源的背景下,产生测试用例的方法承诺增加缺陷检测效果。本文介绍了调查(a)手动单元测试的实证研究结果,在60分钟和(b)工具支持的随机测试案例中由Randoop的时间限制在60分钟内进行的48母学生进行的有效性。两种方法都应用于包含35个种子缺陷的Java Collection类库。使用特定设置,其中时间和资源限制限制了手动单元测试的性能,我们发现(1)随机测试案例所检测的缺陷数在手动单元测试的范围内,而且(2)随机生成的测试用例检测不同的缺陷,而不是手动单元测试。因此,随机测试案例生成似乎是跳跃手动单元测试的有用援助。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号