mlsanityData to 13 Oct 2026

LLM Test Generation via Iterative Hybrid Program Analysis

arXiv 2503.13580 ↗First posted 17 Mar 2025cs.SE cs.AIcited by 9

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

  1. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
  2. 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
  3. 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 95
  4. 2024Automated Unit Test Improvement using Large Language Models at Metacited by 73
  5. 2024Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLMcited by 64
  6. 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
  7. 2022Pynguin: Automated Unit Test Generation for Pythoncited by 49
  8. 2020On Learning Meaningful Assert Statements for Unit Test Casescited by 42
  9. 2024HITS: High-coverage LLM-based Unit Test Generation via Method Slicingcited by 38
  10. 2024On the Evaluation of Large Language Models in Unit Test Generationcited by 34
  11. 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
  12. 2020Automated Unit Test Generation for Pythoncited by 18
2 more
  1. 2024Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Testscited by 11
  2. 2023COMEX: A Tool for Generating Customized Source Code Representationscited by 3

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2025: 3; 2026: 6.

9 papers.