LLM-Based Test Generation: Information Sources, Generation Strategies, and Quality Evidence
Yunhao Liang, Chengguang Gan, Ruixuan Ying, Hanjun Wei, Zhe Cui, Shiwen Ni
Abstract
Large language models are increasingly used to generate test scenarios, executable test suites, assertions, interaction sequences, and fuzzing infrastructure. These artifacts serve different purposes and rely on different sources of information about correct behavior. A test that increases implementation coverage, a test that agrees with a reference program, and a test that detects a requirements violation therefore provide distinct kinds of evidence. We present a structured narrative survey that connects the generation process to the evidence used to justify test quality. Drawing on 95 curated source records through 29 September 2026, we organize the field along four dimensions: testing objectives and artifacts, information available during training and generation, generation and learning mechanisms, and evaluation evidence. We synthesize work on unit and requirements-based testing, test oracles, API and GUI testing, fuzzing, and learned test generators. The resulting framework explains how execution feedback can improve executability while also affecting the independence of an oracle, why specification provenance and training-time reference supervision matter for comparisons, and how downstream code-selection gains differ from test correctness. We use these distinctions to organize benchmarks and derive a research agenda for independent oracle assessment, budget-aware generation, repository-scale evaluation, and test maintenance.
Create a lesson
Related papers
Generating Property-Based Regression Tests from Source Code Semantics
Shared title terminologycs.SEClemens Bauer, Johann Glock, Martin Pinzger
Beyond Static GUI Agent: Evolving LLM-based GUI Testing via Dynamic Memory
Shared title terminologycs.SEMengzhuo Chen, Zhe Liu, Chunyang Chen et al.
Exploring the Combination of Test Generation and Test Amplification for Regression Testing
Shared title terminologycs.SEDanilo Torquato, Breno Miranda, Antonia Bertolino
BRIEF: An Evidence-Assessed Repair-Intent Interface for LLM-Based Program Repair
Shared title terminologycs.SEYi Su, Zhenghang Zhao, Wei Cheng et al.
Testuary: Agentic Test Generation with Zero-Shot Parallelism
Shared title terminologycs.SEKevin Kammler, Dominik Sobania
Agentic Evolution of SQL Test Generators
Shared title terminologycs.SESuyang Zhong, Manuel Rigger