Software Testing With Large Language Models: Survey, Landscape, and Vision
Open accessThe DOI matches its Crossref record; 221 of the 221 references it cites were found in a registry or an index.
Abstract
Pre-trained large language models (LLMs) have recently emerged as a breakthrough technology in natural language processing and artificial intelligence, with the ability to handle large-scale datasets and exhibit remarkable performance across a wide range of tasks. Meanwhile, software testing is a crucial undertaking that serves as a cornerstone for ensuring the quality and reliability of software products. As the scope and complexity of software systems continue to grow, the need for more effective software testing techniques becomes increasingly urgent, making it an area ripe for innovative approaches such as the use of LLMs. This paper provides a comprehensive review of the utilization of LLMs in software testing. It analyzes 102 relevant studies that have used LLMs for software testing, from both the software testing and LLMs perspectives. The paper presents a detailed discussion of the software testing tasks for which LLMs are commonly used, among which test case preparation and program repair are the most representative. It also analyzes the commonly used LLMs, the types of prompt engineering that are employed, as well as the accompanied techniques with these LLMs. It also summarizes the key challenges and potential opportunities in this direction. This work can serve as a roadmap for future research in this area, highlighting potential avenues for exploration, and identifying gaps in our current understanding of the use of LLMs in software testing.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“ChatGPT is the most widely adopted LLM in code generation in the literature [15, 16, 23, 40, 42, 63, 70]”
From An Empirical Study of the Non-Determinism of ChatGPT in Code Generation (2025) · cites this paper as [63]
Experimental — accuracy not yet measuredThe check wasn’t confident either way, so it gives no verdict — never disputed.
In the citing paper
“We use SWE-bench because it unites many separate SE tasks, such as automated program repair [10, 40, 55], bug localization [4, 58], and testing [22, 46, 56] under a single task formulation that faithfully mirrors practical SE.”
From SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering (2024) · cites this paper as [46]
Experimental — accuracy not yet measuredIn the citing paper
“The attempts of the last years to automatically generate test cases and oracles with large language models [207] indicate a clear trend toward the use of large language models and deep neural networks to generate test cases.”
From A 2030 Roadmap for Software Engineering (2025) · cites this paper as [207]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Items 201–222 of 222
Fuzz4All: Universal Fuzzing with Large Language Models
Xia, C. S., Paltenghi, M., Tian, J. L., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.04748
Investigating and Designing for Trust in AI-powered Code Generation Tools
Wang, R., Cheng, R., Ford, D., et al. (2023) · arXiv · doi:10.48550/arxiv.2305.11248 · cited 1×
“• The paper focuses on evaluating the performance of LLM-enabled tools, e.g., evaluating the code quality of the code generation tool Copilot [127], [128], [129].”
Keep the Conversation Going: Fixing 162 out of 337 bugs for $0.42 each using ChatGPT
Xia, C. S., & Zhang, L. (2023) · arXiv · doi:10.48550/arxiv.2304.00385 · cited 1×
“3) Repair With Static Code Analyzer: Most of the program repair studies would suppose the bug has been detected, while Jin et al. [114] propose a program repair framework paired with a static analyzer to first detect the bugs, and then fix them.”
WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models
Yang, C., Deng, Y., Lu, R., et al. (2023) · arXiv · doi:10.48550/arxiv.2310.15991 · cited 1×
“Note that, there are two studies which are respectively the extension of a previously published paper by the same authors ([46] and [131], [68] and [132]), and we only keep the extended version to avoid duplicate.”
Fixing Hardware Security Bugs with Large Language Models
Ahmad, B., Thakur, S., Tan, B., et al. (2023) · arXiv · doi:10.48550/arxiv.2302.01215
InferFix: End-to-End Program Repair with LLMs
Jin, M., Shahriar, S., Tufano, M., Shi, X., Lu, S., Sundaresan, N., & Svyatkovskiy, A. (2023) · arXiv · doi:10.48550/arxiv.2303.07263 · cited 3×
“Jiang et al. [113] check the CodeSearchNet and BigQuery, which are the data sources of common LLMs, and the results show that four repositories used by the Defect4J benchmark are also in CodeSearchNet, and the whole Defects4J repository is included by BigQuery.”
Liu, Z., Chen, C., Wang, J., Chen, M., Wu, B., Che, X., Wang, D., & Wang, Q. (2023) · arXiv · doi:10.48550/arxiv.2310.15657 · cited 1×
“Deng et al. [64] use LLM to extract key information related to the test scenario from a traffic rule, and represent the extracted information in a test scenario schema, then synthesize the corresponding scenario scripts to construct the test scenario.”
Self-citationChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generation
Tang, Y., Liu, Z., Zhou, Z., & Luo, X. (2023) · arXiv · doi:10.48550/arxiv.2307.00588 · cited 2×
“Although various approaches, including search-based [3], [4], constraint-based [5] or random-based [6] techniques to generate a suite of unit tests, the coverage and the meaningfulness of the generated tests are still far from satisfactory [7], [8].”
Self-citationLiu, Z., Chen, C., Wang, J., Chen, M., Wu, B., Che, X., Wang, D., & Wang, Q. (2023) · arXiv · doi:10.48550/arxiv.2310.15780 · cited 8×
“…the test input generation requires providing a diverse range of text inputs or operation combinations (e.g., click a button, long press a list) [14], [49], which is the key to testing the application’s functionality and user interface; while for Deep Learning (DL) libraries, the test input is…”
InfluentialSelf-citationPlein, L., Ouédraogo, W. C., Klein, J., & Bissyandé, T. F. (2023) · arXiv · doi:10.48550/arxiv.2310.06320 · cited 1×
“Instead of generating unit tests from the source code, Plein et al. [32] generated the tests based on user-written bug reports.”
Effective Test Generation Using Pre-trained Large Language Models and Mutation Testing
Dakhel, A. M., Nikanjam, A., Majdinasab, V., Khomh, F., & Desmarais, M. C. (2023) · arXiv · doi:10.48550/arxiv.2308.16557 · cited 1×
“…focal context that includes a focal method and its dependencies within the pre-defined maximum prompt token limit of the LLM, and incorporating these context into a prompt to query the LLM. Dakhel et al. [37] introduced MuTAP for improving the effectiveness of test cases generated by LLMs Fig.”
Learning Deep Semantics for Test Completion
Nie, P., Banerjee, R., Li, J. J., Mooney, R. J., & Gligoric, M. (2023) · arXiv · doi:10.48550/arxiv.2302.10166 · cited 3×
“Besides the syntax-level data as previous studies, [34] fine-tuned the LLMs with six kinds of code semantics data, including the execution result (e.”
Fill in the Blank: Context-aware Automated Text Input Generation for Mobile GUI Testing
Liu, Z., Chen, C., Wang, J., Che, X., Huang, Y., Hu, J., & Wang, Q. (2022) · arXiv · doi:10.48550/arxiv.2212.04732 · cited 3×
“As mentioned in Section IV-C, previous work has demonstrated the LLM’s capability in generating diversified test input for system testing, in conjunction with mutation testing techniques [48], [59].”
Self-citationAXNav: Replaying Accessibility Tests from Natural Language
Taeb, M., Swearngin, A., Schoop, E., Cheng, R., Jiang, Y., & Nichols, J. (2023) · arXiv · doi:10.48550/arxiv.2310.02424 · cited 1×
“Similarly, Zimmermann et al. utilize the LLM to interpret natural language test cases and programmatically navigate through the application under test [54].”
LLM for Test Script Generation and Migration: Challenges, Capabilities, and Opportunities
Yu, S., Fang, C., Ling, Y., Wu, C., & Chen, Z. (2023) · arXiv · doi:10.48550/arxiv.2309.13574 · cited 1×
“Ackerman et al. [60] generate the instances from natural language described requirements recursively to serve as the seed examples for a mutation fuzzer.”
CrashTranslator: Automatically Reproducing Mobile Application Crashes Directly from Stack Trace
Huang, Y., Wang, J., Liu, Z., Wang, Y., Wang, S., Chen, C., Hu, Y., & Wang, Q. (2023) · arXiv · doi:10.48550/arxiv.2310.07128 · cited 1×
“Zhang et al. [70] target to automatically generate the bug title from the descriptions of the bug, which aims to help developers write issue titles and facilitate the bug triaging and follow-up fixing process.”
Self-citationExplaining Software Bugs Leveraging Code Structures in Neural Machine Translation
Mahbub, P., Shuvo, O., & Rahman, M. M. (2022) · arXiv · doi:10.48550/arxiv.2212.04584 · cited 1×
“Mukherjee et al. [73] generate relevant answers to follow-up questions for deficient bug reports to facilitate bug triage.”
Detect-Localize-Repair: A Unified Framework for Learning to Debug with CodeT5
Bui, N. D. Q., Wang, Y., & Hoi, S. (2022) · arXiv · doi:10.48550/arxiv.2211.14875 · cited 1×
“Su et al. [76] transform the bug-component triaging into a multi-classification task and a generation task with LLM, then ensemble the prediction results from them to improve the performance of bug-component triaging further.”
Large Language Models for Test-Free Fault Localization
Yang, A. Z. H., Martins, R., Goues, C. L., & Hellendoorn, V. J. (2023) · arXiv · doi:10.48550/arxiv.2310.01726 · cited 2×
“Kang et al. [83] proposes automated scientific debugging, a technique that given buggy code and a bug-revealing test, prompts LLMs to automatically generate hypotheses, uses debuggers to actively interact with buggy code, and thus automatically reaches conclusions prior to patch generation.”
How Effective Are Neural Networks for Fixing Security Vulnerabilities
Wu, Y., Jiang, N., Pham, H. V., Lutellier, T., Davis, J., Tan, L., Babkin, P., & Shah, S. (2023) · arXiv · doi:10.48550/arxiv.2305.18607 · cited 1×
“There are studies focusing on the bug fixing of Rust programs [108] or OCaml programs (an industrial-strength programming language) [111].”
Pre-trained Model-based Automated Software Vulnerability Repair: How Far are We?
Zhang, Q., Fang, C., Yu, B., Sun, W., Zhang, T., & Chen, Z. (2023) · arXiv · doi:10.48550/arxiv.2308.12533 · cited 1×
“Prenner et al. [117] empirically study how the local context (i.e., code that comes before or after the bug location) affects the repair performance.”
She Elicits Requirements and He Tests: Software Engineering Gender Bias in Large Language Models
Treude, C., & Hata, H. (2023) · arXiv · doi:10.48550/arxiv.2303.10131 · cited 2×
“In addition, Gao et al. [124] empirically investigate the impact of in-context demonstrations for bug fixing, including the selection, order, and number of demonstration examples.”
Research works printed but not linked: 1
- 10.1145/3597926.3598067 · DOI · Paper page
Cited by
Large Language Models for Software Engineering: A Systematic Literature Review
Hou, X., Zhao, Y., Liu, Y., Yang, Z., Wang, K., Li, L., Luo, X., Lo, D., Grundy, J., & Wang, H. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3695988 · Cited by 1,029
“This phase primarily involved excluding papers that mentioned LLMs but did not directly apply them, such as papers that only discussed LLMs in future work or focused on evaluating the performance of LLM-enabled tools [328] (Exclusion criteria 8).”
BackgroundMethodInfluentialSWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
Yang, J., Jimenez, C., Wettig, A., Lieret, K., Yao, S., Narasimhan, K., & Press, O. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-1601 · Cited by 264
An Empirical Study of the Non-Determinism of ChatGPT in Code Generation
Ouyang, S., Zhang, J. M., Harman, M., & Wang, M. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3697010 · Cited by 258
“Section 2 introduces the main procedure of our study.”
A Survey on Large Language Models for Code Generation
Jiang, J., Wang, F., Shen, J., Kim, S., & Kim, S. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3747588 · Cited by 251
ChatUniTest: A Framework for LLM-Based Test Generation
Chen, Y., Hu, Z., Zhi, C., Han, J., Deng, S., & Yin, J. (2024) · Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering · doi:10.1145/3663529.3663801 · Cited by 194
Metadata
- Authors
- Wang, J., Huang, Y., Chen, C., Liu, Z., Wang, S., & Wang, Q.
- Affiliations
- Chinese Academy of Sciences (CN)
- Technical University of Munich (DE)
- York University (CA)
- Venue
- IEEE Transactions on Software Engineering
- Published
- 2024-04
- Volume
- 50
- Issue
- 4
- Pages
- 911-936
- ISSN
- 0098-5589 (ISSN-L)
- 1939-3520
- 2326-3881
- OpenAlex
- W4391974543
- Cited by
- 573
- References
- 172
- Citations by year
- 2026: 219 · 2025: 263 · 2024: 89
- FWCI
- 583.55
- Type
- journal article
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- Locations
- IEEE Transactions on Software Engineering (publishedVersion)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Funders
- National Natural Science Foundation of China (62232016, 62072442, 62272445)
- Youth Innovation Promotion Association Chinese Academy of Sciences, Basic Research Program of ISCAS (ISCAS-JCZD-202304)
- Major Program of ISCAS (ISCAS-ZD-202302)
- Topics
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
- Keywords
- large language models, software testing, test case generation, program repair, prompt engineering, software quality assurance
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.