首页> 外文期刊>Empirical Software Engineering >Prioritizing Junit Test Cases: An Empirical Assessment And Cost-benefits Analysis
【24h】

Prioritizing Junit Test Cases: An Empirical Assessment And Cost-benefits Analysis

机译:优先考虑Junit测试用例:一项实证评估和成本效益分析

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

摘要

Test case prioritization provides a way to run test cases with the highest priority earliest. Numerous empirical studies have shown that prioritization can improve a test suite's rate of fault detection, but the extent to which these results generalize is an open question because the studies have all focused on a single procedural language, C, and a few specific types of test suites. In particular, Java and the JUnit testing framework are being used extensively to build software systems in practice, and the effectiveness of prioritization techniques on Java systems tested under JUnit has not been investigated. We have therefore designed and performed a controlled experiment examining whether test case prioritization can be effective on Java programs tested under JUnit, and comparing the results to those achieved in earlier studies. Our analyses show that test case prioritization can significantly improve the rate of fault detection of JUnit test suites, but also reveal differences with respect to previous studies that can be related to the language and testing paradigm. To investigate the practical implications of these results, we present a set of cost-benefits models for test case prioritization, and show how the effectiveness differences observed can result in savings in practice, but vary substantially with the cost factors associated with narticnlar testing nrocesses.
机译:测试用例的优先级排序提供了一种以最早的优先级运行测试用例的方法。大量的经验研究表明,优先级排序可以提高测试套件的故障检测率,但是这些结果的推广程度仍是一个悬而未决的问题,因为研究都集中在一种程序语言,C语言和一些特定类型的测试上套房。特别是,Java和JUnit测试框架在实践中被广泛用于构建软件系统,并且尚未研究优先级排序技术在JUnit下测试的Java系统上的有效性。因此,我们设计并执行了一个受控实验,以检查测试用例优先级是否对在JUnit下测试的Java程序有效,并将结果与​​早期研究中获得的结果进行比较。我们的分析表明,对测试案例进行优先级排序可以显着提高JUnit测试套件的故障检测率,而且还揭示了与以前的研究可能与语言和测试范式有关的差异。为了研究这些结果的实际含义,我们提出了一套用于测试案例优先级的成本-收益模型,并显示了观察到的有效性差异如何可以节省实践成本,但是会随着与测试方法相关的成本因素而发生显着变化。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号