ChatGPT vs SBST:单元测试套件生成的对比评估
ChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generation
AI总结:
本研究系统比较了ChatGPT与SBST工具EvoSuite在生成单元测试套件上的表现,基于正确性、可读性、代码覆盖率和缺陷检测能力,揭示了LLMs在软件工程领域的优势、劣势及潜力。
摘要:
大型语言模型(LLMs)的最新进展在问答和遵循指令等广泛的通用领域任务中展现出了卓越的成功。此外,LLMs在各种软件工程应用中也显示出了潜力。在本研究中,我们对ChatGPT LLM和最先进的SBST工具EvoSuite生成的测试套件进行了系统比较。我们的比较基于几个关键因素,包括正确性、可读性、代码覆盖率和缺陷检测能力。通过强调LLMs(特别是ChatGPT)在生成单元测试用例方面相比EvoSuite的优势和劣势,这项工作为LLMs在解决软件工程问题中的性能提供了有价值的见解。总体而言,我们的发现强调了LLMs在软件工程中的潜力,并为该领域的进一步研究铺平了道路。
英文摘要:
Recent advancements in large language models (LLMs) have demonstrated exceptional success in a wide range of general domain tasks, such as question answering and following instructions. Moreover, LLMs have shown potential in various software engineering applications. In this study, we present a systematic comparison of test suites generated by the ChatGPT LLM and the state-of-the-art SBST tool EvoSuite. Our comparison is based on several critical factors, including correctness, readability, code coverage, and bug detection capability. By highlighting the strengths and weaknesses of LLMs (specifically ChatGPT) in generating unit test cases compared to EvoSuite, this work provides valuable insights into the performance of LLMs in solving software engineering problems. Overall, our findings underscore the potential of LLMs in software engineering and pave the way for further research in this area.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。