首页> 外文期刊>Software >Prioritizing the creation of unit tests in legacy software systems
【24h】

Prioritizing the creation of unit tests in legacy software systems

机译:优先考虑在遗留软件系统中创建单元测试

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

摘要

Test-driven development (TDD) is a software development practice that prescribes writing unit tests before writing implementation code. Recent studies have shown that TDD practices can significantly reduce the number of pre-release defects. However, most TDD research thus far has focused on new development. We investigate the adaptation of TDD-like practices for already-implemented code, in particular legacy systems. We call such an adaptation 'Test-driven maintenance' (TDM). In this paper, we present a TDM approach that assists software development and testing managers to use the limited resources they have for testing legacy systems efficiently. The approach leverages the development history of a project to generate a prioritized list of functions that managers should focus their unit test writing resources on. The list is updated dynamically as the development of the legacy system progresses. We evaluate our approach on two large software systems: a large commercial system and the Eclipse Open Source Software system. For both systems, our findings suggest that heuristics based on the function size, modification frequency and bug fixing frequency should be used to prioritize the unit test writing efforts for legacy systems.
机译:测试驱动开发(TDD)是一种软件开发实践,规定在编写实现代码之前先编写单元测试。最近的研究表明,TDD实践可以显着减少预发布缺陷的数量。但是,到目前为止,大多数TDD研究都集中在新的开发上。我们研究了类似TDD的做法对已经实施的代码(特别是旧系统)的适应性。我们称这种改编为“测试驱动的维护”(TDM)。在本文中,我们提出了一种TDM方法,该方法可帮助软件开发和测试经理使用有限的资源有效地测试遗留系统。该方法利用项目的开发历史记录来生成功能的优先列表,管理者应将其单元测试写作资源重点放在这些功能上。该列表会随着遗留系统的开发而动态更新。我们在两个大型软件系统上评估我们的方法:一个大型商业系统和Eclipse Open Source Software系统。对于这两个系统,我们的发现都建议基于功能大小,修改频率和错误修复频率的启发式方法应优先用于遗留系统的单元测试编写工作。

著录项

  • 来源
    《Software》 |2011年第10期|p.1027-1048|共22页
  • 作者单位

    Software Analysis and Intelligence Lab (SAIL), Queen's University, Kingston, Ont., Canada, 156 Barrie Street, Kingston, Ont., Canada K7L 3N6;

    Software Analysis and Intelligence Lab (SAIL), Queen's University, Kingston, Ont., Canada;

    Software Analysis and Intelligence Lab (SAIL), Queen's University, Kingston, Ont., Canada;

    Software Analysis and Intelligence Lab (SAIL), Queen's University, Kingston, Ont., Canada;

    Research In Motion, Waterloo, Ont., Canada;

  • 收录信息 美国《科学引文索引》(SCI);美国《工程索引》(EI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    unit testing; testing legacy systems; test driven maintenance; software quality;

    机译:单元测试;测试遗留系统;测试驱动的维护;软件质量;
  • 入库时间 2022-08-17 13:03:48

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号