...
首页> 外文期刊>IEEE Transactions on Software Engineering >Lightweight Assessment of Test-Case Effectiveness Using Source-Code-Quality Indicators
【24h】

Lightweight Assessment of Test-Case Effectiveness Using Source-Code-Quality Indicators

机译:使用源代码质量指标轻量级评估测试案例的有效性

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

摘要

Test cases are crucial to help developers preventing the introduction of software faults. Unfortunately, not all the tests are properly designed or can effectively capture faults in production code. Some measures have been defined to assess test-case effectiveness: the most relevant one is the mutation score, which highlights the quality of a test by generating the so-called mutants, i.e., variations of the production code that make it faulty and that the test is supposed to identify. However, previous studies revealed that mutation analysis is extremely costly and hard to use in practice. The approaches proposed by researchers so far have not been able to provide practical gains in terms of mutation testing efficiency. This leaves the problem of efficiently assessing test-case effectiveness as still open. In this paper, we investigate a novel, orthogonal, and lightweight methodology to assess test-case effectiveness: in particular, we study the feasibility to exploit production and test-code-quality indicators to estimate the mutation score of a test case. We first select a set of 67 factors and study their relation with test-case effectiveness. Then, we devise a mutation score estimation model exploiting such factors and investigate its performance as well as its most relevant features. The key results of the study reveal that our estimation model only based on static features has 86 percent of both F-Measure and AUC-ROC. This means that we can estimate the test-case effectiveness, using source-code-quality indicators, with high accuracy and without executing the tests. As a consequence, we can provide a practical approach that is beyond the typical limitations of current mutation testing techniques.
机译:测试用例至关重要,帮助开发人员防止引入软件故障。不幸的是,并非所有测试都是正确的设计或可以有效地捕获生产代码中的故障。已经定义了一些措施来评估测试案例的效果:最相关的是突变分数,通过产生所谓的突变体,即生产代码的变化来突出测试的质量,即使其有故障的制作代码。试验应该识别。然而,以前的研究表明,突变分析非常昂贵且难以在实践中使用。研究人员提出的方法迄今未能在突变测试效率方面提供实际提升。这使得有效地评估仍然开放的测试案例效果的问题。在本文中,我们调查了一种新颖,正交和轻量级方法来评估测试案例的效果:特别是,我们研究了利用生产和测试码标准的可行性来估计测试用例的突变得分。我们首先选择一套67个因素,并与测试案例的效果研究他们的关系。然后,我们设计了突变评分估计模型利用这些因素,并调查其性能以及其最相关的功能。该研究的关键结果表明,我们的估算模型仅基于静态特征,有86%的F测量和AUC-ROC。这意味着我们可以使用源代码质量指示符来估算测试用例的效果,高精度,而不执行测试。因此,我们可以提供一种超出当前突变测试技术的典型限制的实用方法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号