...
首页> 外文期刊>Software Quality Journal >PBCOV: a property-based coverage criterion
【24h】

PBCOV: a property-based coverage criterion

机译:PBCOV:基于财产的覆盖标准

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

获取外文期刊封面封底 >>

       

摘要

Coverage criteria aim at satisfying test requirements and compute metrics values that quantify the adequacy of test suites at revealing defects in programs. Typically, a test requirement is a structural program element, and the coverage metric value represents the percentage of elements covered by a test suite. Empirical studies show that existing criteria might characterize a test suite as highly adequate, while it does not actually reveal some of the existing defects. In other words, existing structural coverage criteria are not always sensitive to the presence of defects. This paper presents PBCOV, a Property-Based COVerage criterion, and empirically demonstrates its effectiveness. Given a program with properties therein, static analysis techniques, such as model checking, leverage formal properties to find defects. PBCOV is a dynamic analysis technique that also leverages properties and is characterized by the following: (a) It considers the state space of first-order logic properties as the test requirements to be covered; (b) it uses logic synthesis to compute the state space; and (c) it is practical, i.e., computable, because it considers an over-approximation of the reachable state space using a cut-based abstraction. We evaluated PBCOV using programs with test suites comprising passing and failing test cases. First, we computed metrics values for PBCOV and structural coverage using the full test suites. Second, in order to quantify the sensitivity of the metrics to the absence of failing test cases, we computed the values for all considered metrics using only the passing test cases. In most cases, the structural metrics exhibited little or no decrease in their values, while PBCOV showed a considerable decrease. This suggests that PBCOV is more sensitive to the absence of failing test cases, i.e., it is more effective at characterizing test suite adequacy to detect defects, and at revealing deficiencies in test suites.
机译:覆盖率标准旨在满足测试要求并计算指标值,以量化测试套件在揭示程序缺陷时的适当性。通常,测试需求是结构程序元素,覆盖率指标值表示测试套件覆盖的元素的百分比。实证研究表明,现有标准可能将测试套件描述为高度合适,而实际上并不能揭示某些现有缺陷。换句话说,现有的结构覆盖标准并不总是对缺陷的存在敏感。本文介绍了基于属性的COVerage准则PBCOV,并通过经验证明了其有效性。给定其中具有属性的程序,静态分析技术(例如模型检查)会利用形式属性来发现缺陷。 PBCOV是一种动态分析技术,它也利用属性,并且具有以下特征:(a)将一阶逻辑属性的状态空间视为要满足的测试要求; (b)它使用逻辑综合来计算状态空间; (c)实用,即可计算,因为它使用基于割的抽象来考虑可到达状态空间的过度逼近。我们使用带有测试套件的程序(包括通过和失败的测试用例)评估了PBCOV。首先,我们使用完整的测试套件计算了PBCOV和结构覆盖率的度量值。其次,为了量化度量标准对不存在失败的测试用例的敏感性,我们仅使用通过的测试用例来计算所有考虑的度量的值。在大多数情况下,结构指标的值几乎没有下降,而PBCOV却有相当大的下降。这表明PBCOV对没有失败的测试用例更敏感,即,在表征测试套件是否足以检测缺陷以及揭示测试套件中的缺陷方面更有效。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号