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

测试与单语句缺陷有何关联?

How is Testing Related to Single Statement Bugs?

Habibur Rahman, Saqib Ameen

AI总结:

本研究分析了GitHub前100个Maven项目中单元测试覆盖率与7824个单语句缺陷(SSBs)的相关性,发现二者呈弱到中等相关,表明提高覆盖率可一定程度减少SSBs,但仍需更优测试策略。

摘要:

本研究分析了单元测试覆盖率与开源 Java 项目中单语句缺陷(SSBs)发生之间的相关性。我们分析了 GitHub 上排名前 100 的基于 Maven 的项目数据,包含 7824 个 SSBs。初步发现表明存在弱到中等的相关性,表明增加测试覆盖率能在一定程度上减少 SSBs 的发生。然而,这种关系并不十分强,突出了对更好测试的需求。本研究有助于关于提高软件质量的持续讨论,并为未来旨在减轻 SSBs 的有效测试实践研究提供了基础。

英文摘要:

In this study, we analyzed the correlation between unit test coverage and the occurrence of Single Statement Bugs (SSBs) in open-source Java projects. We analyzed data from the top 100 Maven-based projects on GitHub, which includes 7824 SSBs. Our preliminary findings suggest a weak to moderate correlation, indicating that increased test coverage is somewhat reduce the occurrence of SSBs. However, this relationship is not very strong, emphasizing the need for better tests. Our study contributes to the ongoing discussion on enhancing software quality and provides a basis for future research into effective testing practices aimed at mitigating SSBs.

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

↑