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

BugsInPy:一个用于支持受控测试与调试研究的Python程序现有缺陷数据库

BugsInPy: A Database of Existing Bugs in Python Programs to Enable Controlled Testing and Debugging Studies

Ratnadira Widyasari, Sheng Qin Sim, Camellia Lok, Haodi Qi, Jack Phan, Qijin Tay, Constance Tan, Fiona Wee, Jodie Ethelda Tan, Yuheng Yieh, Brian Goh, Ferdian T… 展开作者

Ratnadira Widyasari, Sheng Qin Sim, Camellia Lok, Haodi Qi, Jack Phan, Qijin Tay, Constance Tan, Fiona Wee, Jodie Ethelda Tan, Yuheng Yieh, Brian Goh, Ferdian Thung, Hong Jin Kang, Thong Hoang, David Lo, Eng Lieh Ouh

AI总结:

受Java缺陷基准Defects4J启发,本研究构建了包含17个真实Python项目493个真实缺陷的BugsInPy基准数据库及工具,以填补Python测试调试基准的不足,推动相关工具研究发展。

摘要:

2019版Stack Overflow开发者调查显示,Python的受欢迎程度首次超越Java,这一差距在2020版调查中进一步拉大。遗憾的是,尽管Python的普及度快速提升,专为Python设计的测试与调试工具却为数不多,这与Java领域丰富的测试调试工具形成鲜明对比,因此亟需推动可辅助Python开发者的工具相关研究。Java测试与调试工具快速发展的推动因素之一是基准测试集的可用性,其中广受欢迎的Defects4J基准测试集初始版本包含来自5个真实Java项目的357个真实缺陷,每个缺陷都配有可触发该缺陷的测试套件,已被数百项测试与调试研究采用,推动了该领域的研究前沿。受Defects4J启发,本项目构建了一个全新的基准数据库及工具,包含来自17个真实Python项目的493个真实缺陷,希望该基准能助力推动未来Python程序测试与调试工具的相关研究。

英文摘要:

The 2019 edition of Stack Overflow developer survey highlights that, for the first time, Python outperformed Java in terms of popularity. The gap between Python and Java further widened in the 2020 edition of the survey. Unfortunately, despite the rapid increase in Python's popularity, there are not many testing and debugging tools that are designed for Python. This is in stark contrast with the abundance of testing and debugging tools for Java. Thus, there is a need to push research on tools that can help Python developers. One factor that contributed to the rapid growth of Java testing and debugging tools is the availability of benchmarks. A popular benchmark is the Defects4J benchmark; its initial version contained 357 real bugs from 5 real-world Java programs. Each bug comes with a test suite that can expose the bug. Defects4J has been used by hundreds of testing and debugging studies and has helped to push the frontier of research in these directions. In this project, inspired by Defects4J, we create another benchmark database and tool that contain 493 real bugs from 17 real-world Python programs. We hope our benchmark can help catalyze future work on testing and debugging tools that work on Python programs.

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

↑