Towards Automated Software Testing: Evaluating LLMs in Generating Effective Test Cases
摘要
This study explores the potential of Large Language Models (LLMs) in generating automated test cases to enhance software testing and bug detection. By evaluating 100 GitHub issues, the research investigates whether LLM-generated tests could identify bugs prior to their resolution. Findings reveal that LLMs can be effective in certain cases, particularly with simpler code that has fewer dependencies and lower complexity metrics. However, the success of these tests diminishes as code complexity, imports, and function calls increase. The study highlights the potential of LLMs in software testing, while also noting the challenges associated with testing complex code structures.