首页> 外文期刊>Software Testing, Verification and Reliability >Prioritizing test cases for early detection of refactoring faults
【24h】

Prioritizing test cases for early detection of refactoring faults

机译:确定测试用例的优先级,以及早发现重构故障

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

摘要

Refactoring edits are error-prone, requiring cost-effective testing. Regression test suites are often used as a safety net for decreasing the chances of behavioural changes. Because of the high costs related to handling massive test suites, prioritization techniques can be applied to reorder test case execution, fostering early fault detection. However, traditional prioritization techniques are not specifically designed for detecting refactoring-related faults. This article proposes refactoring-based approach (RBA), a refactoring-aware strategy for prioritizing regression test cases. RBA reorders an existing test sequence, using a set of proposed refactoring fault models that define the refactoring's impact on program methods.Refactoring-based approach's evaluation shows that it promotes early detection of refactoring faults and outperforms well-known prioritization techniques in 71% of the cases.Moreover, it prioritizes fault-revealing test cases close to one another in 73% of the cases, which can be useful for fault localization. Those findings show that RBA can considerably improve prioritization of test cases during perfective evolution, both by increasing fault-detection rates as well as by helping to pinpoint defects introduced by an incorrect refactoring. Copyright © 2016 John Wiley & Sons, Ltd.
机译:重构编辑容易出错,需要进行具有成本效益的测试。回归测试套件通常用作减少行为改变机会的安全网。由于与处理大量测试套件相关的高昂成本,可以将优先级排序技术应用于对测试用例进行重新排序,从而促进早期故障检测。但是,传统的优先级排序技术并不是专门为检测与重构相关的故障而设计的。本文提出了一种基于重构的方法(RBA),一种用于对回归测试用例进行优先排序的重构感知策略。 RBA通过使用一组建议的重构故障模型来重新定义现有的测试故障顺序,这些模型定义了重构对程序方法的影响。基于重构的方法的评估表明,它可以促进重构故障的早期检测,并且在71%的重构算法中优于已知的优先级排序技术。此外,它在73%的案例中将彼此公开的故障揭示测试案例划分优先级,这对于故障定位很有用。这些发现表明,RBA可以通过提高错误检测率以及帮助查明错误重构带来的缺陷,从而在完美演进过程中极大地提高测试案例的优先级。版权所有©2016 John Wiley&Sons,Ltd.

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号