【24h】

State Coverage: An Empirical Analysis Based on a User Study

机译:状态覆盖率:基于用户研究的实证分析

获取原文

摘要

State coverage is a relatively new metric to evaluate the quality of test suites. While most existing test adequacy criteria measure the degree of exploration of the code under test, state coverage estimates the strength of the assertions in the test suite. Initial experiments have shown that there is a correlation between state coverage and mutation adequacy, and that expert users can discover new faults by modifying the test suite to increase state coverage. Since the faults injected by mutation testing are relatively simple, it is not clear whether these experiment are valid in a broader setting. Furthermore, these results may not be reproducible by average users, since they usually lack full understanding of the internals of the tool. This paper presents a user-based experiment to evaluate whether the state coverage of a test suite correlates with the number defects it discovers. While the results of the experiments fail to confirm this hypothesis, they do raises important questions. First, test suites with high state coverage should be good in finding logical software faults, but these faults occur less frequently than structural faults. Second, state coverage is not monotonic in the size of the test suite. Therefore, adding new test cases which check new properties and detect new faults can often reduce state coverage. Based on this, we suggest a number of improvements.
机译:状态覆盖率是评估测试套件质量的相对较新的指标。尽管大多数现有的测试充足性标准都可以衡量对被测代码的探索程度,但是状态覆盖率却可以评估测试套件中断言的强度。初步实验表明,状态覆盖率和突变充分性之间存在关联,并且专家用户可以通过修改测试套件以增加状态覆盖率来发现新的故障。由于通过突变测试注入的故障相对简单,因此尚不清楚这些实验在更广泛的环境中是否有效。此外,这些结果通常对于普通用户可能无法再现,因为他们通常对工具的内部结构缺乏全面的了解。本文提出了一个基于用户的实验,以评估测试套件的状态覆盖范围是否与其发现的缺陷数量相关。尽管实验结果未能证实这一假设,但确实提出了重要问题。首先,具有高状态覆盖率的测试套件应能很好地发现逻辑软件故障,但这些故障的发生频率要低于结构性故障。其次,状态覆盖范围在测试套件的大小上不是单调的。因此,添加检查新属性并检测新故障的新测试用例通常会减少状态覆盖率。基于此,我们建议进行一些改进。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号