arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.26672cs.SE
收藏

软件缺陷为何能逃过测试?来自大规模实证研究的证据

What Makes Software Bugs Escape Testing? Evidence from a Large-Scale Empirical Study

University of North Carolina at Charlotte(北卡罗来纳大学夏洛特分校);University of Naples Federico II(那不勒斯费德里科二世大学);IMT School for Advanced Studies Lucca(卢卡高等研究学院)

Domenico Cotroneo, Giuseppe De Rosa, Cristina Improta, Benedetta Gaia Varriale

AI总结:

本文通过大规模实证研究,分析了软件缺陷在生产环境中的表现与演变,揭示了发布后缺陷集中于老旧、高频修改和高 churn 组件,强调了进化和过程动态对缺陷产生的影响。

摘要:

理解软件缺陷在生产环境中的表现和演变对于提高可靠性至关重要。尽管以往研究主要关注发布前的缺陷,但残留故障,即那些逃过测试并在发布后显现的缺陷,仍缺乏深入理解。本文对 C/C++ 和 Java 系统的发布前和发布后缺陷进行了大规模特征化,涵盖了从开源项目中挖掘出的超过 14k 个缺陷。我们采用广泛软件度量指标来捕捉多样化的代码属性,如复杂性、大小、结构和开发历史。结果表明,发布后缺陷集中在较老、频繁修改和高 churn 的组件中,通常需要更长和更复杂的修复。这些发现强调,残留缺陷更多源于进化和过程动态,而非代码结构本身,这表明可靠性工程应优先在成熟和复杂的代码区域进行有针对性的测试。

英文摘要:

Understanding how software defects manifest and evolve in production environments is critical for improving reliability. While previous research has largely focused on pre-release defects, the nature of residual faults, i.e., those escaping testing and surfacing post-release, remains poorly understood. This paper presents a large-scale characterization of pre- and post-release defects across C/C++ and Java systems, encompassing over 14k defects mined from open-source projects. We employ a broad suite of software metrics to capture diverse code attributes such as complexity, size, structure, and development history. Results show that post-release defects are concentrated in older, frequently modified, and high-churn components, typically requiring longer and more complex fixes than pre-release ones. These findings highlight that residual defects arise more from evolutionary and process dynamics than code structure alone, suggesting that reliability engineering should prioritize targeted testing in mature and complex code regions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑