An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation
Open accessThe DOI matches its Crossref record; 78 of the 80 references it cites were found in a registry or an index.
Abstract
Unit tests play a key role in ensuring the correctness of software. However, manually creating unit tests is a laborious task, motivating the need for automation. Large Language Models (LLMs) have recently been applied to various aspects of software development, including their suggested use for automated generation of unit tests, but while requiring additional training or few-shot learning on examples of existing tests. This paper presents a large-scale empirical evaluation on the effectiveness of LLMs for automated unit test generation without requiring additional training or manual effort. Concretely, we consider an approach where the LLM is provided with prompts that include the signature and implementation of a function under test, along with usage examples extracted from documentation. Furthermore, if a generated test fails, our approach attempts to generate a new test that fixes the problem by re-prompting the model with the failing test and error message. We implement our approach inTestPilot, an adaptive LLM-based test generation tool for JavaScript that automatically generates unit tests for the methods in a given project's API. We evaluateTestPilotusing OpenAI'sgpt3.5-turboLLM on 25 npm packages with a total of 1,684 API functions. The generated tests achieve a median statement coverage of 70.2% and branch coverage of 52.8%. In contrast, the state-of-the feedback-directed JavaScript test generation technique, Nessie, achieves only 51.3% statement coverage and 25.6% branch coverage. Furthermore, experiments with excluding parts of the information included in the prompts show that all components contribute towards the generation of effective test suites. We also find that 92.8% ofTestPilot's generated tests have$\leq$50% similarity with existing tests (as measured by normalized edit distance), with none of them being exact copies. Finally, we runTestPilotwith two additional LLMs, OpenAI's oldercode-cushman-002LLM andStarCoder, an LLM for which the training process is publicly documented. Overall, we observed similar results with the former (68.2% median statement coverage), and somewhat worse results with the latter (54.0% median statement coverage), suggesting that the effectiveness of the approach is influenced by the size and training set of the LLM, but does not fundamentally depend on the specific model.
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?
In the citing paper
“Research in this area has explored the use of large language models to generate test cases, showing promising results [19, 47, 108, 140, 178, 232].”
From A 2030 Roadmap for Software Engineering (2025) · cites this paper as [178]
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
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173 · cited 1×
“Some LLMs such as BERT [30] or GPT-3 [31] are trained purely on text extracted from books and other public sources, while others like OpenAI Codex [32] and AlphaCode [33] are put through additional training on publicly available source code to make them better suited for software development tasks…”
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1423 · Cited by 54,325 · cited 1×
“Some LLMs such as BERT [30] or GPT-3 [31] are trained purely on text extracted from books and other public sources, while others like OpenAI Codex [32] and AlphaCode [33] are put through additional training on publicly available source code to make them better suited for software development tasks…”
Language Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 1×
“Some LLMs such as BERT [30] or GPT-3 [31] are trained purely on text extracted from books and other public sources, while others like OpenAI Codex [32] and AlphaCode [33] are put through additional training on publicly available source code to make them better suited for software development tasks…”
BackgroundKaugeranna, R., Kaugeranna, E., & Aion, (. S. 4. 6. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.giscience.2023.43 · Cited by 13,690
Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., & Zettlemoyer, L. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.703 · Cited by 8,821
Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., & Zettlemoyer, L. (2019) · arXiv · doi:10.48550/arxiv.1910.13461 · Cited by 8,816 · cited 2×
“Similarly, Tufano et al.’s A THENA T EST [26] generates tests using a BART transformer model [44] fine-tuned on a training set of functions and their corresponding tests.”
Extreme Programming Explained: Embrace Change
Beck, K. L., & Andres, C. (2000) · Cited by 5,902
CUTE: a concolic unit testing engine for C
Sen, K., Marinov, D., & Agha, G. (2005) · Proceedings of the 10th European software engineering conference held jointly with 13th ACM SIGSOFT international symposium on Foundations of software engineering · doi:10.1145/1081706.1081750 · Cited by 1,651 · cited 2×
“This fact has inspired extensive research on techniques for automated test generation including fuzzing [5], [6], feedback-directed random test generation [7], [8], [9], [10], [11], dynamic symbolic execution [12], [13], [14], [15], and search-based and evolutionary techniques [16], [17].”
BackgroundMethodDART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · Proceedings of the 2005 ACM SIGPLAN conference on Programming language design and implementation · doi:10.1145/1065010.1065036 · Cited by 1,570 · cited 2×
“This fact has inspired extensive research on techniques for automated test generation including fuzzing [5], [6], feedback-directed random test generation [7], [8], [9], [10], [11], dynamic symbolic execution [12], [13], [14], [15], and search-based and evolutionary techniques [16], [17].”
BackgroundMethodDominance statistics: Ordinal analyses to answer ordinal questions.
Cliff, N. (1993) · Psychological Bulletin · doi:10.1037//0033-2909.114.3.494 · Cited by 1,485 · cited 2×
“Both these differences are statistically significant (p-values 0.002 and 0.027 respectively) with a large effect size, measured by Cliff’s delta [55], of 0.493 for statement coverage and a medium one (0.431) for branch coverage.”
BackgroundMethodInfluential
Research works printed but not linked: 5
- [2] J. Shore and S. Warden, The Art of Agile Development , 2nd ed. O'Reilly, 2021. -
- [3] S. Siddiqui, Learning Test-Driven Development . O'Reilly, 2021. -
- [41] M. Allamanis, H. Jackson-Flux, and M. Brockschmidt, 'Selfsupervised bug detection and repair,' in Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual , M. Ranzato, A. Beygelzimer, Y. N. Dauphin, P. Liang, and J. W. Vaughan, Eds., 2021, pp. 27 865-27 876. [Online]. Available: https://proceedings.neurips.cc/paper/2021/ hash/ea96efc03b9a050d895110db8c4af057-Abstract.html -
- [56] M. Selakovic, M. Pradel, R. Karim, and F. Tip, 'Test generation for higher-order functions in dynamic languages,' Proceedings of the ACM on Programming Languages , vol. 2, no. OOPSLA, pp. 1-27, 2018. - · DOI
- [79] S. Mirshokraie and A. Mesbah, 'JSART: JavaScript assertionbased regression testing,' in Web Engineering - 12th International Conference, ICWE 2012, Berlin, Germany, July 23-27, 2012. Proceedings , ser. Lecture Notes in Computer Science, M. Brambilla, T. Tokuda, and R. Tolksdorf, Eds., vol. 7387. Springer, 2012, pp. 238-252. [Online]. Available: https://doi.org/10.1007/ 978-3-642-31753-8 18 - · doi:10.1007/978-3-642-31753-8
Cited by
Items 301–400 of 437
Application of knowledge graph enhanced large language model in unit testing
Wang, S., Wang, H., & Shen, Z. (2025) · doi:10.1117/12.3094810
“[8] used the Codex model to automatically generate unit tests and improved the effectiveness of test generation through adaptive methods.”
Advanced Mutation Testing with Zero and Few-Shot Evaluation Using GPT-V4
Hemmat, A., Aghababaei, F., Sharbaf, M., & Kolahdouz-Rahimi, S. (2025) · doi:10.1109/iot69654.2025.11297643
“In this context, Lahiri et al. [11] and Scha¨fer et al. [12] proposed the evolution of interactive and automated testing approaches through the application of LLMs.”
HoarePrompt: Structural Reasoning About Program Correctness in Natural Language
Bouras, D. S., Dai, Y., Wang, T., Xiong, Y., & Mechtaev, S. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3744916.3773206 · Cited by 16
DT4LM: Differential Testing for Reliable Language Model Updates in Classification Tasks
Zuo, X., Xiao, Y., Cao, X., Wang, W., & Dong, J. S. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3622251 · Cited by 1
“These models have become fundamental to a wide range of NLP tasks [4], [5], [6] and have expanded into numerous scientific and practical domains [7], [8], [9].”
Generating Test Cases with Large Language Model: Frameworks and Challenges
Hosseini, M. R., Janjua, N. K., Mohsin, A., & Rahman, S. U. (2025) · IEEE International Conference on e-Business Engineering (ICEBE) · doi:10.1109/icebe68123.2025.00041 · Cited by 1
“For instance, S. Nadi proposed TestPilot [35] that uses prompts for test case generation without any additional training, but might need a little pre-processing.”
Toward Explaining Large Language Models in Software Engineering Tasks
Vitale, A., Nguyen, K.-N., Poshyvanyk, D., Oliveto, R., Scalabrino, S., & Mastropaolo, A. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3837084 · Cited by 2
“…of text enriched with large-scale open-source code, these models have achieved impressive performance in a wide range of software engineering applications, including code completion [14, 15], program repair [18, 33, 34, 75], code summarization [5, 7, 65, 69], and test case generation [8, 37, 59].”
Agentic BDD Testing of Dialog Systems: Stabilizing the Dialog Manager via Failure-Driven Evolution
Dukić, O., & Ristić, O. (2025) · Telecommunications Forum (TELFOR) · doi:10.1109/telfor67910.2025.11314366
“LLMs enable generating tests from descriptions, often with solid coverage but risks of hallucinations and missed edge cases [3], [4].”
A Vision for Debiasing Confirmation Bias in Software Testing via LLM
Salman, I., Waseem, M., Mandić, V., & Alwis, R. D. D. (2025) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1109/esem64174.2025.00050
“…many researchers envision the significant impact of LLM on software engineering, there are still an abundance of challenges, such as the quality of AI-generated software artefacts, and integration of LLM software components (e.g. AI-agents) into a wider software development context [10], [11].”
InfluentialQuantum-Guided Test Case Minimization for LLM-Based Code Generation
Zhang, H., & Emu, M. (2025) · IEEE International Conference on Collaborative Advances in Software and Computing (CASCON) · doi:10.1109/cascon66301.2025.00108
“The critical task has become how to precisely guide an LLM to produce concise code [1].”
OpenAI for OpenAPI: Automated generation of REST API specification via LLMsPreprint
Chen, H., Li, Y., Chen, C., Lin, F., & Li, W. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.6140637
Zarębski, S., Rusek, K., & Chołda, P. (2026) · Expert Systems with Applications · doi:10.1016/j.eswa.2026.131225 · Cited by 1
Template-guided interpretable reasoning with execution feedback for LLM-based program repair
Hao, S., Shi, X., Liu, H., Yin, Y., & Chen, X. (2026) · Information and Software Technology · doi:10.1016/j.infsof.2026.108058 · Cited by 4
Leveraging Long Method Decomposition to Improve Large Language Model-Based Test Case Generation
Qi, R., Shen, Z., & Li, Y. (2025) · Conference proceedings/Conference proceedings - IEEE International Conference on Systems, Man, and Cybernetics · doi:10.1109/smc58881.2025.11343523
“TESTPILOT [6] generates executable unit test cases by progressively refining prompts, analyzing the target func-tion’s signature, body, and example usage extracted from project documentation.”
Diagnosing and Repairing Field Access Hallucinations in LLM-Based Test Generation
Guo, X., & Tsuchiya, T. (2026) · Lecture notes in computer science · doi:10.1007/978-981-95-6032-5_5
LLMFuzzTestGen: From Automation to Robustness via Multi-Agent LLM-Driven Fuzzing and Feedback Loops
Nuh, J. A., Koh, T. W., Osman, M. H., Lawal, B., Ali, M. A., & Jaharadak, A. A. (2025) · International Conference on Interdisciplinary Computer Science and Engineering (ICICSE) · doi:10.1109/icicse67247.2025.11390823
“TESTPILOT [10] adapts LLM prompts to maximise JavaScript test coverage, while A3Test [6] enhances correctness through assertion knowledge.”
Unit Test Case Generation using Large Language Models for Students in Computer ProgrammingPreprint
Islam, M. J., Sahar, H. M., & Ahmed, N. (2026) · Research Square · doi:10.21203/rs.3.rs-8822709/v1
MUATC: Multi-Agent Utilization to Augment Test Coverage
Ma, T., Liu, S., Dong, W., Liu, J., & Zhang, Y. (2025) · Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec66846.2025.00028
“We further compared MUATC on Java projects with several state-of-the-art methods, such as ChatUniTest [11], Coverup [12], and TestPilot [14], demonstrating that MUATC’s coverage improvement is not affected by the programming language.”
He, S., Zhan, W., Wang, J., Dai, J., Chen, H., Tan, C., & Li, F. (2025) · Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec66846.2025.00067
“Similarly, TestPilot [54] focuses on bug repair but utilizes feedback-driven search in a way complementary to our generation-oriented setting.”
LLM-JDFuzz: A Large Language Model-Based Automated Java Deserialization Payload Generation Framework
Su, D., & Tu, T. (2026) · Electronics · doi:10.3390/electronics15050954
Chain of Unit-Physics: A Primitive-Centric Approach to Scientific Code SynthesisPreprint
Sharma, V., & Raman, V. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.6385314 · Cited by 2
Can a Large Language Model Win a Kaggle Competition?
Gordyy, I., Rendon, E., Islam, N., Wardat, M., & Fu, H. (2025) · IEEE ... International Conference on Data Mining workshops · doi:10.1109/icdmw69685.2025.00346
“Recently, Large Language Models (LLMs) have demonstrated significant performance in code generation [6], code repair [7], and code testing [8].”
Latency-Aware LLM Deployment over Edge Networks
Picano, B., Hoang, D. T., & Nguyen, D. N. (2025) · Globecom · doi:10.1109/globecom59602.2025.11432267
“The number of available edge nodes varies in the range [5 , 12] [2], [27]–[29].”
LLM Based Software Test Scenario Generation System From Bug Descriptions
Yilmazer, M., & Karaköse, M. (2026) · doi:10.1109/it67293.2026.11435765
Quiñonez, A. S. B., Salazar, J. A. H., & Varela, P. M. R. (2026) · Revista Ingeniería e Innovación del Futuro. · doi:10.62465/riif.v5n1.2026.231 · Cited by 1
An LLM-Powered API Testing Framework Based on Structural Similarity Analysis
Sezgin, A., Kocatekin, T., & Yağcıoğlu, M. (2026) · International Symposium on Digital Forensics and Security (ISDFS) · doi:10.1109/isdfs69419.2026.11459067
“Schafer et al. [9] proposed a framework named TESTPILOT, which can utilize large language models for unit test creation for the JavaScript programming language.”
A survey of unit test case generation methods
Chen, Y., Zhang, N., Jin, Z., Luo, Y., Shi, Y., Feng, S., & Xu, M. (2026) · Information and Software Technology · doi:10.1016/j.infsof.2026.108142 · Cited by 2
Generative AI and Large Language Models: A Review of Applications, Detection, and Future Directions
Kumar, P., & Dhir, V. (2026) · Lecture notes in networks and systems · doi:10.1007/978-3-032-19179-3_28 · Cited by 1
Improving the Quality of GitHub Copilot Generated Unit Tests
Schallermayer, M., & Schnappinger, M. (2026) · Lecture notes in business information processing · doi:10.1007/978-3-032-24216-7_8
Exploratory Study on LLMs for Test Amplification in Solidity
Handenhoven, J. V., Vanhove, B., Beyazıt, M., Kılınççeker, O., & Demeyer, S. (2026) · IEEE International Conference on Software Analysis, Evolution and Reengineering - Companion (SANER-C) · doi:10.1109/saner-c67878.2026.00010
“In software engineering, growing empirical evidence shows that LLMs can support activities such as requirements elicitation, source code generation, automated test creation, and code review [21], [30], [31], [37].”
Framework for Implementing LLMS for Software Quality
Ruiz, J. A., Martínez, M. Á. Q., Gomez-Rios, M.-D., & Arias, S. T. C. (2026) · Communications in computer and information science · doi:10.1007/978-3-032-22641-9_20 · Cited by 1
BenjiTest: An Agentic Framework for Evaluating LLM-Based Unit Test Generation and CorrectionPreprint
Lops, A., Ragone, A., Penta, M. D., Trizio, M., & Narducci, F. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.6843083
Identifying performance-sensitive configurations in software systems with LLM-based agents
Wang, Z., Kim, D. J., & Chen, T.-H. P. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10883-7 · Cited by 8
“…showcase LLMs’ potential in tasks like generating commit mes - sages (Zhang et al. 2024), resolving merge conflicts (Shen et al. 2023), creating tests (Xie et al. 2023; Yuan et al. 2023; Schäfer et al. 2023), renaming methods (Alomar et al. 2024), and aiding in log analytics (Ma et al. 2024a, b).”
Raj, S. S., Sambandan, S., & Komaramkandth, S. (2026) · International Conference on Communications and Signal Processing (ICCSP) · doi:10.1109/iccsp68173.2026.11539403
Large Language Models for Automated Software Test Generation
George, J. (2026) · International Journal of Information Technology Research Studies (IJITRS) · doi:10.63090/ijitrs/3139.3209.0022
Yuan, Z., Chen, K. X., Yang, Z., Jiang, D., Tan, J., & Zhang, H. (2026) · IET Software · doi:10.1049/sfw2/9976714
An Environment-Aware Verification Framework for LLM-Generated Robot Control Programs
Nie, Z., Wang, W., Liu, X., Zhang, Y., Chen, Z. T., Wang, Z., Huang, K., & Zhao, S. (2026) · Design, Automation, and Test in Europe · doi:10.23919/date69613.2026.11539304
“The key challenge addressed in this paper is to ensure two aspects of correctness in the RCL program: Program-Level Correctness : As the example discussed in Section I, programs generated by LLMs may contain errors that cannot pass the compiler checks [18].”
Method of Test Cases Intelligent Generation Based on Large Models
Sun, P., Zhou, F., Han, G., & Lei, C. (2026) · International Conference on Intelligent Perception and Autonomous Control (IPAC) · doi:10.1109/ipac69021.2026.11542700
“The TestPilot method proposed by Schäfer [6] et al. can rapidly generate a large number of unit test cases, improving code coverage and reducing manual effort, but the generated tests may be redundant and require manual verification.”
CDBench: Benchmarking the mutation testing capabilities of LLMs with code defenders
Romazanov, A., Fraser, G., & Herbold, S. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10901-8 · Cited by 2
“Only few studies used custom new samples of open source code (Chen et al. 2024 ; Pan et al. 2025; Schäfer et al. 2023; Yuan et al. 2023).”
Lyashkevych, V. (2026) · Applied Computer Systems · doi:10.2478/acss-2026-0010 · Cited by 5
“Empirical studies on the use of LLMs for automated unit test generation show significant efficiency, but also reveal limitations regarding semantic accuracy, assertion quality, and behavioural adequacy [4]–[8].”
Fusing LLMs and Genetic Algorithm for High-Quality Unit Test Generation
Fu, Y., Gao, X., Qi, B., Yuan, Y., & Sun, H. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3819237 · Cited by 3
Retrieval-Augmented Unit Test Suggestion Generation
Li, H., Sun, W., & Yan, M. L. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3821423 · Cited by 2
“The retriever and generator are jointly optimized through a feedback-driven strategy, enabling the retriever to refine its selection strategy based on the generation performance.”
How efficient is your clone? Evaluating LLM capabilities for runtime and memory-aware code selection
Ramaswamy, P., Akbar, M. A., Rao, M., & Razzaq, A. (2026) · Journal of Systems and Software · doi:10.1016/j.jss.2026.112973
Wang, Y., & Zhao, Q. (2026) · Journal on Wireless Communications and Networking · doi:10.1186/s13638-026-02640-7
“Schäfer et al. conducted empirical evaluations of LLM-driven unit test generation, observing that static models without external knowledge integration tend to generate semantically plausible yet technically invalid test artifacts [23], particularly when handling complex communication protocols [24].”
Bâra, A., & Oprea, S. (2026) · Journal of Knowledge Management · doi:10.1108/jkm-02-2026-0222 · Cited by 2
IntentTester: Intent-Driven Multi-agent Framework for Cross-Library Test Migration
橘高, 義., Zhang, Z., Hu, X., Yang, X., & Xia, X. (2026) · Proceedings of the ACM on software engineering. · doi:10.1145/3797096
“1 Introduction Unit testing is the backbone of software reliability, and open-source communities such as GitHub now host millions of high-quality unit tests created by developers to validate a wide range of functionalities [15, 16, 31, 39, 44, 47, 48].”
홍종찬, Kim, J., & Hwang, S. (2026) · Proceedings of the ACM on software engineering. · doi:10.1145/3797091
“These advancements have drawn significant attention in practical domains such as technical specification interpretation and software testing, leading to a rapid expansion of LLM applications across nearly all fields [12, 27, 33].”
TestTailor: Generating High-Coverage Tests via Path-Proximal Tests with LLMs
Zhou, X., Lou, Y., Dong, J., & Hao, D. (2026) · Proceedings of the ACM on software engineering. · doi:10.1145/3797140 · Cited by 1
“Recently, with the rapid advancement of large language models (LLMs), a new line of research has emerged that incorporates LLMs into test generation [2, 3, 8, 21, 22, 24, 31, 33, 38, 40].”
AI-Assisted Semantic Modeling of Languages for Symbolic Execution Driven Unit Test Generation
Tanguturi, M. R., Kumar, A., Menon, N., & Chimalakonda, S. (2026) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner67736.2026.00020
Architectural perspectives on GenAI-driven software testing systems: A systematic literature review
Lahami, M., & Krichen, M. (2026) · Information and Software Technology · doi:10.1016/j.infsof.2026.108246 · Cited by 3
On the Time Efficiency of Code Generated and Optimized by Large Language Models
Peng, Y., Wan, J., Ren, X., Menzies, T., & Lyu, M. R.-T. (2026) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2026.3709872
“In contrast to current LLM-based test case generation meth-ods [7], [55], [59], [84], [94], [95], STG EN aims to generate test cases to evaluate the time efficiency of code solutions under extreme conditions rigorously.”
Gajjar, U. (2024) · International Journal of Scientific Research and Modern Technology. · doi:10.38124/ijsrmt.v3i4.1540
SecMutBench: Evaluating LLM-Generated Security Tests via Mutation-Based Vulnerability Detection
Almutairi, M., & Lu, C. (2026) · ACM International Conference on AI-Powered Software (AIware) · doi:10.1145/3805760.3814933
When Generative AI Writes Test Cases: Scenario-Driven Evaluation of Generated TestsPreprint
Ardıç, B., Yildirim, I. I., Brandt, C., & Zaidman, A. (2026) · Research Square · doi:10.21203/rs.3.rs-9238547/v1
Iqbal, F., Khan, M. A., Weerakoon, O., Oyedeji, S., & Porras, J. (2026) · IEEE/ACM International Workshop on Green and Sustainable Software (GREENS) · doi:10.1145/3786148.3788622
“Automated test case generation and prioritization [46], assertion generation, bug localization and program repair [6], and anomaly detection via model-based testing [42].”
AI-Assisted Unit Test Writing and Test-Driven Code Refactoring: A Case Study
Smolić, E., Brčić, M., Hobor, L., & Kovač, M. (2026) · International Convention on Information and Communication Technology, Electronics and Microelectronics · doi:10.1109/mipro70003.2026.11591524 · Cited by 1
“Recent advances in LLMs (large language models) have prompted growing research on their application in software development, including automatic test writing [3]–[7], [14].”
Replacing Training with Reasoning: Reinterpreting Classic ML Pipelines with LLMs
Alecci, M., Samhi, J., Bissyandé, T. F., & Klein, J. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3786582.3786807 · Cited by 3
“Large Language Models (LLMs) are increasingly being adopted across a wide range of software engineering tasks, including bug detection and fixing [7, 12, 17, 19], testing [9, 15, 20, 29], vulnerability detection [14, 25, 32, 34], and other applications [3, 18, 21, 23, 31, 35].”
Anh, L. H. N., Luong, H. V. D., & Vũ, V. A. (2026) · Genetic and Evolutionary Computation Conference (GECCO) · doi:10.1145/3795095.3805199 · Cited by 1
RIP-Guided Graph Evidence for LLM-Based Equivalent Mutant Detection
Hu, L., Yao, X., Wei, C., Gong, D., & Sun, B. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3827622
“In recent years, large language models (LLMs) have demonstrated strong semantic modeling capabilities in software engineering tasks such as code completion, defect localization, test generation, and program repair[23, 50, 62].”
Jhanglani, P., Desai, Z. K., Kansara, V., & Alomar, E. (2026) · Annual International Computer Software and Applications Conference · doi:10.1109/compsac69091.2026.00059
“But this is not the large divide that earlier work on semantic comprehension issues in LLM-generated code might lead you to expect [15].”
Developer vs. DSpot vs. ChatGPT: A Comparative Study of JUnit Test Amplification
Owuor, D. O., & Jha, A. K. (2026) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst69053.2026.00042
“Recently, large language models (LLMs) have shown promise in test generation [7]–[10].”
The Stylistic Blind Spot: Uncovering the Hidden Implicit Bias of Coding Style on LLM Code Evaluation
Liu, Z., Jiang, Y., & Wang, H. (2026) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3803437.3805590
Paraspatki, A. G., Reznicek, B., Abreu, R., Garberson, F., Mockus, A., Nagappan, N., & Rigby, P. C. (2026) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3803437.3805220
“Modern state-of-the-art generative LLMs have proven effective in supporting various software engineering tasks, including code completion [1, 20, 44], test case generation [70], and code review [23, 45].”
Zhang, Q., Zhou, L., Sun, B., & Wang, N. (2026) · Lecture notes in computer science · doi:10.1007/978-981-92-3394-6_19
A Qualitative and Quantitative Exploration of LLM-Based Test Generation Repair Loops
Singh, J. (2026) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3803437.3804438
“These techniques can be effective, but often produce tests that are hard to read, brittle, or lack assertions [9].”
Understanding and Mitigating Hallucinations in Industrial LLM-based Unit Test Generation
Tu, Y., Zhou, Z., Xu, C., Sun, J., Feng, S., & Zhang, C. (2026) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3803437.3805260
DRRAR: Domain-Aware Requirement Refinement via Adaptive RAG
Wei, L. (2026) · International Conference on Artificial Intelligence and Digital Ethics (ICAIDE) · doi:10.1109/icaide69370.2026.11604517
“LLM-based frameworks [14], [15] show promise in generating test cases directly from natural language, and security testing tools [16] extend this capability to vulnerability discovery, but suffer from domain knowledge deficiency and lack mechanisms to validate or refine their outputs iteratively.”
Abuzeyad, D. R., & Alshattnawi, S. (2026) · International Conference on Intelligent Systems and Digital Applications (ISDA) · doi:10.1109/isda70544.2026.11606005
Type-aware LLM-based Test Generation for Python Programs
Liu, R., Zhang, Z., Hu, Y., Lin, Y., Gao, X., & Sun, H. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3830083 · Cited by 19
“LLM-based unit test generation [38] is the technique that leverages large language models trained to automatically generate unit tests for software code.”
Benchmarking Large Language Models for Java Code Smell Detection
Ghadimi, E. B., Şahin, D. Ö., Demirci, S., & Yıldız, D. (2026) · International Symposium on AI-Driven Engineering Systems (ISADES) · doi:10.1109/isades69945.2026.11608239
Exploring the Potential of Large Language Models in Simulink-Stateflow Mutant Generation
Valle, P., Ali, S., & Arrieta, A. (2026) · IEEE/ACM International Conference on AI Foundation Models and Software Engineering (FORGE) · doi:10.1145/3793655.3793737 · Cited by 2
“Trained on vast software code, LLMs have demonstrated strong capabilities in code generation [19] and in understanding hierarchical and semantic structures of complex code [23].”
LLMs for Architectural Refactoring: An Exploratory Study on Monoliths to Microservices
Sambu, A., Capuano, R., O'Dea, E., Vaidhyanathan, K., & Muccini, H. (2026) · IEEE International Conference on Software Architecture (ICSA) · doi:10.1109/icsa66085.2026.00033 · Cited by 1
“Beyond their strong performance in program synthesis [5], documentation generation [6], test creation [7], [8], and bug detection [9], empirical studies show that LLMs are increasingly applied to tasks such as automated code review [10], [11], architectural smell detection [12], and requirements…”
MATT: Cycle-Aware Parallel Regression Testing for Model-Generated Embedded Software
Lu, D., Ding, Y., Wang, L., Pan, Y., & Wu, S. (2026) · International Conference on Networks, Communications and Information Technology (CNCIT) · doi:10.1145/3821162.3821168
Liu, Y., Zhao, Y., & Wang, H. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3828725 · Cited by 1
Automated Test Suite Enhancement Using Large Language Models with Few-shot Prompting
Chudic, A., & Çalıklı, G. (2026) · Enlighten: Publications (University of Glasgow) · doi:10.1145/3794763.3794828
“During our experiments, we used GPT-4.o due to its integration to GitHub CoPilot and demonstrated performance of GPT models in various research studies on unit test generation [24, 29, 43].”
InfluentialGivenWhenThen: A Dataset of BDD Test Scenarios Mined from Open Source Projects
Júnior, L. B. D. A., & Montandon, J. E. (2026) · International Conference on Mining Software Repositories (MSR) · doi:10.1145/3793302.3793308
Test Coverage of Code Changes in AI-Generated Pull Requests
Alves, T., & Teixeira, L. (2026) · International Conference on Mining Software Repositories (MSR) · doi:10.1145/3793302.3793618 · Cited by 1
“Schäfer et al. [11]”
Feature-Focused Test Generation
Amaya, J. A. Z., Sapia, G., Turcotte, A., Benavides, D., Böhme, M., & Zeller, A. (2026) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3832783.3837479
“Prior work spans model-based generation from use cases [40], feedback-directed random generation [41], search-based testing with whole-test-suite optimization [23, 36], and recent LLM-based approaches to test and oracle generation [30, 47, 50].”
Mayer, S., Knierim, P., Villa, S., & Schmidt, A. (2026) · Springer eBooks · doi:10.1007/978-3-319-27648-9_119-1
TGenAI: An LLM-based approach for functional end-to-end test generation for IoT systems
Minani, J. B., Trabelsi, I., Fellah, Y. E., Sabir, F., Kuradusenge, M., Guéhéneuc, Y., & Moha, N. (2026) · Internet of Things · doi:10.1016/j.iot.2026.102066
Hasan, I. H., & Potrus, M. Y. (2026) · Automated Software Engineering · doi:10.1007/s10515-026-00658-1
“Large language models (LLMs) now produce syntactically correct JUnit tests (Chen et al. 2024; Schäfer et al. 2024 ), while hybrid systems like CodaMOSA (Lemieux et al. 2023) combine neural suggestions with search-based exploration to escape local optima.”
Ju, X., Yu, X., Wang, R., Li, C., & Chen, X. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.7275148
Zhi, Q., Guo, Z., Yu, Q., Yu, M., Yu, L., & Ren, S. (2026) · IEEE International Conference on Electronics, Energy Systems and Power Engineering (EESPE) · doi:10.1109/eespe68405.2026.11648914
“Frameworks like CogniTest and TestForge have integrated LLMs into testing pipelines, validating their effectiveness in test case generation and defect classification[11].”
One Workflow to Grade Them All: LLM-Enabled Auto-grading for Comprehensive, Personalized Feedback
Chandarana, M., & Ramachandra, S. (2026) · ASEE Annual Conference & Exposition · doi:10.18260/1-2--60347
Lutfi, Z. F. (2026) · Al-Noor Journal of Engineering Management and Computer Science · doi:10.71229/b40nsd71
Radaideh, M., Corriveau, J., & Shi, W. (2026) · IEEE International Conference on Big Data and Artificial Intelligence (BDAI) · doi:10.1109/bdai70753.2026.11655121
“TestPilot [13] applies LLMs to JavaScript with contextual prompting.”
Property-based testing in Python: empirical insights
Oliveira, I., Corgozinho, A. L., Rocha, H., & Valente, M. T. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10953-w
“These tools generally show very promising performance for generating traditional tests, such as unit tests (Schäfer et al. 2024), and it may therefore be interesting to also evaluate their use for generating PBTs.”
LLM-Based Detection and Test Generation for Command Injection Vulnerabilities in Python
Wang, Y., Chen, J., & Wang, Q. (2026) · IEEE International Conference on Artificial Intelligence Testing (AITest) · doi:10.1109/aitest70988.2026.00020
“For example, Sch¨afer et al. [9] propose TESTPILOT, which leverages GPT-3.”
Improving LLM-Based Unit Test Generation Through Root-Cause-Driven Prompt Design
Yamada, M., Kato, M., & Takahashi, J. (2026) · IEEE International Conference on Artificial Intelligence Testing (AITest) · doi:10.1109/aitest70988.2026.00021
“To mitigate this burden, LLM-based automated unit test generation has received considerable attention [2]–[4].”
ChatPerfTest: A framework for LLM-based JMH microbenchmark generation
Zhi, C., Hu, Z., Li, D., Qin, C., Li, M., Xu, Y., Zhao, X., Deng, S., & Yin, J. (2026) · IEEE International Conference on Software Services Engineering (SSE) · doi:10.1109/sse72781.2026.00011
“Huang et al. [39] revealed that fine-tuned code LLMs can outperform traditional neural models in Automated Program Repair (APR), while Sch¨afer et al. [40] demonstrated that LLMs achieve human-comparable unit test generation in readability and coverage.”
TriUTest: Internalizing execution feedback for defect-exposing python unit test generation
Li, Z., Wang, Z., & Cui, C. (2026) · Neurocomputing · doi:10.1016/j.neucom.2026.135014
Fu, R., Zhang, Y., Zhang, S., Wu, X., Gu, W., Wang, F., Che, Z., Liu, X., Sun, Y., & Zhang, Y. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3820774 · Cited by 3
“In software testing [40, 54], TestPilot [40] constructs detailed prompts that include the function signature, implementation, documentation comment, and usage examples to generate tests.”
MAST: LLM-Guided Multi-Path Analysis and Solver-Driven Synthesis for Automated Test GenerationPreprint
Wang, Z., Meng, L., Zhang, X., Xie, T., Liu, Y., & Ma, Y. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.7417459
Efficiency Evaluation Framework for LLM-Generated Code
Avagian, D. A., & Ball, A. L. J. (2026) · Pattern Recognition and Image Analysis · doi:10.1134/s1054661826700306
“Some such applications are requirement classification [13], specification analysis [23], rapid prototyping [24], code generation [2] and summarization [3], code search [10], test generation [32], vulnerability detection and patching [34], as well as effort estimation for software development [20].”
Context-Aware Sequential Ranking for Dynamic Test Case Prioritization in Continuous Integration
Altınışık, U. (2026) · Mathematics · doi:10.3390/math14183276
“For example, Schäfer et al. empirically evaluated LLMs for automated unit-test generation [21], and Alagarsamy et al. studied text-to-test-case generation with prompting and fine-tuning across multiple language-model families and open-source Java projects [22].”
STALL + : Boosting LLM-based Repository-level Code Completion with Static Analysis
Jun-wei, L., Chen, Y., Liu, M., Peng, X., & Lou, Y. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3846180 · Cited by 48
Toward a Multi-Agent System for Reliable Mocking of Static Methods and Continuous Integration
Stone, J. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3774748.3787622
“LLM test generation research [1, 5, 13, 15, 17, 21] shows improvements in semantic understanding and code comprehension.”
A Study on the Continuous Generation of Test Cases for Large Language Models with Project Memory
Li, Y., & Ma, H. (2026) · International Conference on Computer Information Science and Application Technology (CISAT) · doi:10.1109/cisat71030.2026.11682047
“…that large language models can be used in unit testing, but the results are still affected by the lack of context and unstable assertions [1]; Lemieux et al. mitigated coverage stagnation by pretraining language models, thus increasing the ability to generate search based tests [2];…”
Change And Cover: Last-Mile, Pull Request-Based Regression Test Augmentation
Zhou, Z., Paltenghi, M., Kim, M., & Pradel, M. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3744916.3787768 · Cited by 5
LLM4JMH: Studying the Use of LLMs for Generating Java Performance Microbenchmarks
Chen, Z., Zhu, D., Yao, K., Shang, W., Chen, J., Geng, J., Pretschner, A., Großklags, J., Hauswirth, M., & Schimmler, S. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3744916.3787777
“Recent advances in LLMs [52] have expanded the scope of automated testing, enabling tasks such as unit test generation [2, 5, 27, 30, 42, 47, 49, 54], test oracle creation [33, 36, 51], and system-level test input synthesis [11, 50, 55, 56].”
When Iterative Prompting Fails: An Empirical Study of Unit Test Generation with Open-Source LLMs
Tran, M.-D., & Mai, K. (2026) · International Conference on Multimedia Analysis and Pattern Recognition (MAPR) · doi:10.1109/mapr72750.2026.11685714
“We adopt an execution-based evaluation protocol, following established practices in code generation benchmarks such as HumanEval [1] and prior work on LLM-based test generation [14].”
Metadata
- Authors
- Schäfer, M., Nadi, S., Eghbali, A., & Tip, F.
- Affiliations
- GitHub, Kidlington, U.K.
- University of Alberta (CA)
- University of Stuttgart (DE)
- Northeastern University (US)
- Venue
- IEEE Transactions on Software Engineering
- Published
- 2024-01
- Volume
- 50
- Issue
- 1
- Pages
- 85-105
- ISSN
- 0098-5589 (ISSN-L)
- 1939-3520
- 2326-3881
- OpenAlex
- W4389104713
- Cited by
- 431
- References
- 70
- Citations by year
- 2026: 164 · 2025: 187 · 2024: 78
- FWCI
- 299.17
- 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 Science Foundation (CCF-1907727, CCF-2307742)
- Canada Research Chairs
- Natural Sciences and Engineering Research Council of Canada (RGPIN-2017-04289)
- 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
- automated unit test generation, large language models, prompt engineering, JavaScript, LLM model comparison, StarCoder, npm packages
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.