...
首页> 外文期刊>IEEE Transactions on Reliability >Code Coverage and Postrelease Defects: A Large-Scale Study on Open Source Projects
【24h】

Code Coverage and Postrelease Defects: A Large-Scale Study on Open Source Projects

机译:代码覆盖率和发布后的缺陷:开源项目的大规模研究

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

摘要

Testing is a pivotal activity in ensuring the quality of software. Code coverage is a common metric used as a yardstick to measure the efficacy and adequacy of testing. However, does higher coverage actually lead to a decline in postrelease bugs? Do files that have higher test coverage actually have fewer bug reports? The direct relationship between code coverage and actual bug reports has not yet been analyzed via a comprehensive empirical study on real bugs. Past studies only involve a few software systems or artificially injected bugs (mutants). In this empirical study, we examine these questions in the context of open-source software projects based on their actual reported bugs. We analyze 100 large open-source Java projects and measure the code coverage of the test cases that come along with these projects. We collect real bugs logged in the issue tracking system after the release of the software and analyze the correlations between code coverage and these bugs. We also collect other metrics such as cyclomatic complexity and lines of code, which are used to normalize the number of bugs and coverage to correlate with other metrics as well as use these metrics in regression analysis. Our results show that coverage has an insignificant correlation with the number of bugs that are found after the release of the software at the project level, and no such correlation at the file level.
机译:测试是确保软件质量的关键活动。代码覆盖率是用作衡量测试有效性和充分性的标准。但是,更高的覆盖率是否会导致发布后错误的减少?具有较高测试覆盖率的文件实际上是否具有较少的错误报告?尚未通过对真实错误的全面经验研究来分析代码覆盖率与实际错误报告之间的直接关系。过去的研究仅涉及少数软件系统或人为注入的错误(突变体)。在这项实证研究中,我们基于实际报告的错误在开源软件项目的背景下研究了这些问题。我们分析了100个大型开源Java项目,并测量了这些项目附带的测试用例的代码覆盖率。在软件发布后,我们收集记录在问题跟踪系统中的实际错误,并分析代码覆盖率与这些错误之间的相关性。我们还收集其他指标,例如圈复杂度和代码行,这些指标用于标准化错误的数量和覆盖率,以与其他指标相关联,以及在回归分析中使用这些指标。我们的结果表明,覆盖范围与在项目级别发布软件后发现的错误数量无关紧要,而在文件级别则没有这种相关性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号