LLM Test Generation via Iterative Hybrid Program Analysis
Not on the map. Why?
Abstract (arXiv)
Automating unit test generation remains a significant challenge, particularly for complex methods in real-world projects. While Large Language Models (LLMs) have made strides in code generation, they struggle to achieve high branch coverage due to their limited ability to reason about intricate control flow structures. To address this limitation, we introduce Panta, a technique that emulates the iterative process human developers follow when analyzing code and constructing test cases. Panta integrates static control flow analysis and dynamic code coverage analysis to systematically guide LLMs in identifying uncovered execution paths and generating better test cases. By incorporating an iterative feedback-driven mechanism, our technique continuously refines test generation based on static and dynamic path coverage insights, ensuring more comprehensive and effective testing. Our empirical evaluation, conducted on classes with high cyclomatic complexity from open-source projects, demonstrates that Panta achieves 26% higher line coverage and 23% higher branch coverage compared to the state-of-the-art.
Key facts. Cited by 9 papers in the map (data through 13 Oct 2026). Builds on 14 of its 36 references that are in the map. First posted on arXiv 17 Mar 2025.
Builds on
14 of 36 references.
References · 14
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
- 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
- 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 95
- 2024Automated Unit Test Improvement using Large Language Models at Metacited by 73
- 2024Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLMcited by 64
- 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
- 2022Pynguin: Automated Unit Test Generation for Pythoncited by 49
- 2020On Learning Meaningful Assert Statements for Unit Test Casescited by 42
- 2024HITS: High-coverage LLM-based Unit Test Generation via Method Slicingcited by 38
- 2024On the Evaluation of Large Language Models in Unit Test Generationcited by 34
- 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
- 2020Automated Unit Test Generation for Pythoncited by 18
Built on by
Citing papers per year: 2025: 3; 2026: 6.
9 papers.
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Verification-Aware Planning for Multi-Agent Systemscited by 9
- 2025Navigating the Labyrinth: Path-Sensitive Unit Test Generation with Large Language Modelscited by 1
- 2026SCATE: Learning to Supervise Coding Agents for Cost-Effective Test Generationcited by 1
- 2026TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenancecited by 0
- 2026SPARC: Scenario Planning and Reasoning for Automated C Unit Test Generationcited by 0
- 2026Call-Chain-Aware LLM-Based Test Generation for Java Projectscited by 0
- 2026SAFEdit: Does Multi-Agent Decomposition Resolve the Reliability Challenges of Instructed Code Editing?cited by 0
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessmentcited by 0
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessment21 Aug 2026
- 2026SCATE: Learning to Supervise Coding Agents for Cost-Effective Test Generation9 Jul 2026
- 2026SAFEdit: Does Multi-Agent Decomposition Resolve the Reliability Challenges of Instructed Code Editing?28 Apr 2026
- 2026Call-Chain-Aware LLM-Based Test Generation for Java Projects23 Apr 2026
- 2026SPARC: Scenario Planning and Reasoning for Automated C Unit Test Generation18 Feb 2026
- 2026TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenance26 Jan 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Verification-Aware Planning for Multi-Agent Systems20 Oct 2025
- 2025Navigating the Labyrinth: Path-Sensitive Unit Test Generation with Large Language Models28 Sep 2025