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
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
Demystifying LLM-Based Software Engineering Agents
Xia, C. S., Deng, Y., Dunn, S., & Zhang, L. (2025) · Proceedings of the ACM on Software Engineering · doi:10.1145/3715754 · Cited by 849
Software Testing With Large Language Models: Survey, Landscape, and Vision
Wang, J., Huang, Y., Chen, C., Liu, Z., Wang, S., & Wang, Q. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3368208 · Cited by 573
“For example, in their work for unit test case generation, Alagarsamy et al. [29] additionally introduce a verification method to check and repair the naming consistency (i.e., revising the test method name to be consistent with the focal method name) and the test signatures (i.e., adding missing…”
Self-collaboration code generation via ChatGPT
Dong, Y., Jiang, X., Jin, Z., & Li, G. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3672459 · Cited by 256
“(2) This setting is mainly suited for function-level code generation and proves challenging to extend to file-level or repository-level code generation.”
Self-collaboration Code Generation via ChatGPT
Dong, Y., Jiang, X., Jin, Z., & Li, G. (2023) · arXiv · doi:10.48550/arxiv.2304.07590 · Cited by 256
Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each using ChatGPT
Xia, C. S., & Zhang, L. (2024) · Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3650212.3680323 · Cited by 203
Evaluating and Improving ChatGPT for Unit Test Generation
Yuan, Z., Liu, M., Ding, S., Wang, K., Chen, Y., Peng, X., & Lou, Y. (2024) · Proceedings of the ACM on Software Engineering · doi:10.1145/3660783 · Cited by 163
(2025) · doi:10.1109/icse55347.2025.00157 · Cited by 157
Code-Aware Prompting: A Study of Coverage-Guided Test Generation in Regression Setting using LLM
Ryan, G., Jain, S., Shang, M., Wang, S., Ma, X., Ramanathan, M. K., & Ray, B. (2024) · Proceedings of the ACM on Software Engineering · doi:10.1145/3643769 · Cited by 120
A survey on large language models for software engineering
Zhang, Q., Fang, C., Xie, Y., Zhang, Y., Yu, S., Sun, W., Yang, Y., & Chen, Z. (2026) · Science China Information Sciences · doi:10.1007/s11432-025-4670-0 · Cited by 124
When Software Security Meets Large Language Models: A Survey
Zhu, X., Zhou, W., Han, Q., Ma, W., Wen, S., & Xiang, Y. (2025) · IEEE/CAA Journal of Automatica Sinica · doi:10.1109/jas.2024.124971 · Cited by 128
On the Evaluation of Large Language Models in Unit Test Generation
Yang, L., Yang, C., Gao, S., Wang, W., Wang, B., Zhu, Q., Chu, X., Zhou, J., Liang, G., Wang, Q., et al. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695529 · Cited by 235
“There are twowidely-used description styles in addressing code-related tasks with LLMs in the literature [14, 65, 88, 92]: natural language description [88, 92] and code language description [14, 65, 68].”
InfluentialHITS: High-coverage LLM-based Unit Test Generation via Method Slicing
Wang, Z., Liu, K., Li, G., & Jin, Z. G. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695501 · Cited by 202
“…have tried search-based software testing (SBST) methods[13, 20], symbolic execution exploring possible execution paths[3–5, 8], direct test generation with deep neural networks[14 , 23 , 28 Large language models (LLMs) have shown their potential to generate high-coverage unit tests[26, 29].”
MethodClarifyGPT: A Framework for Enhancing LLM-Based Code Generation via Requirements Clarification
Mu, F., Shi, L., Wang, S., Yu, Z., Zhang, B., Wang, C., Liu, S., & Wang, Q. (2024) · Proceedings of the ACM on Software Engineering · doi:10.1145/3660810 · Cited by 74
How Beginning Programmers and Code LLMs (Mis)read Each Other
Nguyen, S., Babe, H. M., Zi, Y., Guha, A., Anderson, C. J., & Feldman, M. Q. (2024) · Proceedings of the CHI Conference on Human Factors in Computing Systems · doi:10.1145/3613904.3642706 · Cited by 66
The future of AI-driven software engineering
Terragni, V., Vella, A., Roop, P., & Blincoe, K. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3715003 · Cited by 62
CoverUp: Effective High Coverage Test Generation for Python
Pizzorno, J. A., & Berger, E. D. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3729398 · Cited by 168
“TestPilot prompts an LLM to generate JavaScript unit tests based on the function under test’s implementation, its documentation, and usage snippets [Schäfer et al. 2024].”
Bhatia, S., Gandhi, T., Kumar, D., & Jalote, P. (2024) · Proceedings of the 1st International Workshop on Large Language Models for Code · doi:10.1145/3643795.3648396 · Cited by 55
“These models can also facilitate the generation of unit test cases, streamlining software validation processes[19, 29, 34].”
BackgroundA Survey of Research in Large Language Models for Electronic Design Automation
Pan, J., Zhou, G.-S., Chang, C.-C., Jacobson, I., Hu, J., & Chen, Y. (2025) · ACM Transactions on Design Automation of Electronic Systems · doi:10.1145/3715324 · Cited by 132
Large Language Model-Based Agents for Software Engineering: A Survey
Jun-wei, L., Wang, K., Chen, Y., Peng, X., Chen, Z., Zhang, L., & Lou, Y. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3796507 · Cited by 325
Large Language Model-Based Agents for Software Engineering: A Survey
Liu, J., Wang, K., Chen, Y., Peng, X., Chen, Z., Zhang, L., & Lou, Y. (2024) · arXiv · doi:10.48550/arxiv.2409.02977 · Cited by 49
LLM4VV: Developing LLM-driven testsuite for compiler validation
Munley, C., Jarmusch, A., & Chandrasekaran, S. (2024) · Future Generation Computer Systems · doi:10.1016/j.future.2024.05.034 · Cited by 68
Shi, J., Yang, Z., & Lo, D. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3708525 · Cited by 43
“…137:2 J. Shi et al. various programming languages, with exceptional performance across a spectrum of code-related tasks, ranging from code generation [13, 15, 143] and summarization [2, 3, 71] to vulnerability detection [97, 120, 159], program repair [57, 59, 142], and more [29, 90, 102, 106, 153].”
Evaluating large language models for software testing
Li, Y., Liu, P., Wang, H., Chu, J., & Wong, W. E. (2025) · Computer Standards & Interfaces · doi:10.1016/j.csi.2024.103942 · Cited by 42
Domain Adaptation for Code Model-Based Unit Test Case Generation
Shin, J., Hashtroudi, S., Hemmati, H., & Wang, S. (2024) · Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3650212.3680354 · Cited by 40
“Schafer et al. [31] proposed TestPilot , a test cases generation approach that leverages LLM, usage examples mined from package documentation, and error logs for npm packages (JavaScript).”
Can LLMs Replace Manual Annotation of Software Engineering Artifacts?
Ahmed, T., Dévanbu, P., Treude, C., & Pradel, M. (2025) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr66628.2025.00086 · Cited by 162
Liu, J., & Li, S. (2024) · Journal of Educational Computing Research · doi:10.1177/07356331241240460 · Cited by 62
Knowledge Transfer from High-Resource to Low-Resource Programming Languages for Code LLMs
Cassano, F., Gouwar, J., Lucchetti, F., Schlesinger, C., Freeman, A., Anderson, C. J., Feldman, M. Q., Greenberg, M., Jangda, A., & Guha, A. (2024) · Proceedings of the ACM on Programming Languages · doi:10.1145/3689735 · Cited by 149
Test Oracle Automation in the Era of LLMs
Molina, F., Gorla, A., & d’Amorim, M. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3715107 · Cited by 73
TOGLL: Correct and Strong Test Oracle Generation with LLMS
Hossain, S. B., & Dwyer, M. B. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00098 · Cited by 110
“For example, TESTPILOT [42], an LLM-based test generation tool for JavaScript that automatically generates unit tests for JavaScript.”
You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projects
Bouzenia, I., & Pradel, M. (2025) · Proceedings of the ACM on Software Engineering · doi:10.1145/3728922 · Cited by 35
“Beyond generating application code, LLMs have been used to generate unit tests [10, 17, 18, 23, 27, 28], to translate code from one language into another [26], and to fuzz test programs that accept code as their input, such as compilers [40].”
An Empirical Study on Challenges for LLM Application Developers
Chen, X., Gao, C., Chen, C., Zhang, G., & Liu, Y. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3715007 · Cited by 110
“Crawl relevant data from the forum”
A Review of Large Language Models for Automated Test Case Generation
Celik, A., & Mahmoud, Q. H. (2025) · Machine Learning and Knowledge Extraction · doi:10.3390/make7030097 · Cited by 73
Test-Driven Development and LLM-based Code Generation
Mathews, N. S., & Nagappan, M. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695527 · Cited by 140
“We need a better dataset with more human-written test cases for more rigorous analysis, but we hypothesize, based on our results, that adding more diverse test cases aids in the code generation process.”
SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents
Lin, F., Kim, D. J., & Chen, T.-H. (2025) · 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE) · doi:10.1109/icse55347.2025.00140 · Cited by 32
“With tools like ChatGPT [28] or LLaMA [39], researchers have demonstrated the potential of LLMs in generating commit messages [51], resolving merge conflicts [35], generating tests [43, 50, 33], method renaming [1], and even facilitating log analytics [23, 24].”
TestSpark: IntelliJ IDEA's Ultimate Test Generation Companion
Sapozhnikov, A. Y., Olsthoorn, M., Panichella, A., Kovalenko, V., & Derakhshanfar, P. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3639478.3640024 · Cited by 59
“In the past few years, researchers and developers implemented multiple unit test generation tools for Java programs leveraging various techniques ( e.g., search-based [9, 11], LLM-based [5, 14, 18], and symbolic execution [1– 3, 7]).”
BackgroundLlamaRestTest: Effective REST API Testing with Small Language Models
Kim, M., Sinha, S., & Orso, A. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3715737 · Cited by 65
Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Tests
Deljouyi, A., Koohestani, R., Izadi, M., & Zaidman, A. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00032 · Cited by 69
“In particular, attempts have been made to evaluate the efficacy of utilizing existing LLMs for unit test generation [29], [35], and training specialized LLMs for test generation [47].”
InfluentialAutomated Control Logic Test Case Generation using Large Language Models
Koziolek, H., Ashiwal, V., Bandyopadhyay, S., & Chandrika, K. R. (2024) · IEEE International Conference on Emerging Technologies and Factory Automation (ETFA) · doi:10.1109/etfa61755.2024.10711016 · Cited by 46
“Schaefer et al. [16] prompted an LLM for JavaScript test case generation and achieved an almost 20% increase in statement coverage compared to a state-of-the-art feedback-directed test generation approach.”
ResultLLMs: A game-changer for software engineers?
Haque, M. A. (2025) · BenchCouncil Transactions on Benchmarks Standards and Evaluations · doi:10.1016/j.tbench.2025.100204 · Cited by 55
“Additionally, LLMs have been applied to automated testing, where they generate unit tests, identify edge cases, and suggest test cases based on the functionality described in code [35][36].”
RAGVA: Engineering retrieval augmented generation-based virtual assistants in practice
Yang, R., Fu, M. C., Tantithamthavorn, C. K., Arora, C., Vandenhurk, L., & Chua, J. (2025) · Journal of Systems and Software · doi:10.1016/j.jss.2025.112436 · Cited by 49
Mutation-Guided LLM-based Test Generation at Meta
Harman, M., Ritchey, J., Harper, I., Sengupta, S., Mao, K., Gulati, A., Foster, C., & Robert, H. (2025) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3696630.3728544 · Cited by 96
ASTER: Natural and Multi-Language Unit Test Generation with LLMs
Pan, R., Kim, M., Krishna, R., Pavuluri, R., & Sinha, S. K. (2025) · IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1109/icse-seip66354.2025.00042 · Cited by 107
“TestPilot [62] synthe-sizes unit test cases for JavaScript and TypeScript by gathering usage documentation and API functions.”
Exploring Automated Assertion Generation via Large Language Models
Zhang, Q., Sun, W., Fang, C., Yu, B., Li, H., Yan, M. L., Zhou, J., & Chen, Z. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3699598 · Cited by 47
“Recently, LLMs have been utilized and demonstrated their potential across a wide range of code-related tasks, such as program repair [60, 63], vulnerability repair [19, 59], vulnerability detection [18, 47], code review [30, 54], and unit test generation [45, 61, 64].”
Lops, A., Narducci, F., Ragone, A., Trizio, M., & Bartolini, C. (2025) · IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW) · doi:10.1109/icstw64639.2025.10962454 · Cited by 66
“A GONE T EST fills these gaps by automating the end-to-end process of test generation, execution, and evaluation at the”
Test Intention Guided LLM-Based Unit Test Generation
Nan, Z., Guo, Z., Liu, K., & Xia, X. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00243 · Cited by 74
“…license info with the related id. and selecting efficient fine-tuning algorithms [12], [13]; and ② designing effective prompts , which aims at extracting accurate focal code context [14]–[17], constructing similar few-shot unit test examples [9] and designing strict output instructions [18]–[20].”
LLMs for Intelligent Software Testing: A Comparative Study
Boukhlif, M., Kharmoum, N., & Hanine, M. (2024) · International Conference on Networking, Information Systems & Security (NISS) · doi:10.1145/3659677.3659749 · Cited by 41
Large Language Models for Equivalent Mutant Detection: How Far Are We?
Tian, Z., Shu, H., Wang, D., Cao, X., Kamei, Y., & Chen, J. (2024) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3650212.3680395 · Cited by 51
“Particularly, LLMs are widely used for test case generation [71, 90], program debugging [17, 43], and program repair [31] through various learning strategies such as fine-tuning and prompt engineering.”
InfluentialHybrid Automated Program Repair by Combining Large Language Models and Program Analysis
Li, F., Jiang, J., Sun, J., & Zhang, H. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3715004 · Cited by 97
“5 Turbo [47], [48] and Llama-2 [49]) and two code-specific LLMs (StarCoder [50] and CodeLlama [51]), all of which have been used in diverse software engineering tasks [52], [53] and demonstrated to be effective, including automated program repair [40], [41].”
LLMorpheus: Mutation Testing Using Large Language Models
Tip, F., Bell, J., & Schäfer, M. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3562025 · Cited by 51
“At the time of conducting our experiments, a full experiment with LLMorpheus on all 13 applications costs up to $3.62 depending on the LLM being used, suggesting that cost is not a prohibitive limiting factor.”
InfluentialSelf-citationReinforcement Learning from Automatic Feedback for High-Quality Unit Test Generation
Steenhoek, B. J., Tufano, M., Sundaresan, N., & Svyatkovskiy, A. (2025) · IEEE/ACM International Workshop on Deep Learning for Testing and Testing for Deep Learning (DeepTest) · doi:10.1109/deeptest66595.2025.00011 · Cited by 72
Advancing Code Coverage: Incorporating Program Analysis with Large Language Models
Yang, C., Chen, J., Lin, B., Wang, Z., & Zhou, J. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3748505 · Cited by 77
“Recently, some work leveraged LLMs for test generation [17, 26, 36, 48, 63, 65], including CODAMOSA and CHATTESTER used in our study.”
CodeFuse-13B: A Pretrained Multi-Lingual Code Large Language Model
Di, P., Li, J.-G., Yu, H., Jiang, W., Cai, W.-T., Cao, Y., Chen, C.-Y., Chen, D.-J., Chen, H., Chen, L., et al. (2023) · 2024 IEEE/ACM 46th International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1145/3639477.3639719 · Cited by 35
Automating Autograding: Large Language Models as Test Suite Generators for Introductory Programming
Alkafaween, U., Al-Bluwi, I., & Denny, P. C. (2024) · Journal of Computer Assisted Learning · doi:10.1111/jcal.13100 · Cited by 35
“There is a growing body of research on using LLMs to generate unit tests in this area [10, 40, 43, 48], our work, however, differs from it in that: 1.”
A Large-Scale Empirical Study on Fine-Tuning Large Language Models for Unit Testing
Shang, Y., Zhang, Q., Fang, C., Gu, S., Zhou, J., & Chen, Z. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3728951 · Cited by 54
“Besides, some empirical studies [40, 52] have emerged, comparing the effectiveness of different LLMs with various prompt strategies.”
Enhancing large language models for text-to-testcase generation
Alagarsamy, S., Tantithamthavorn, C. K., Takerngsaksiri, W., Arora, C., & Aleti, A. (2025) · Journal of Systems and Software · doi:10.1016/j.jss.2025.112531 · Cited by 37
Alhanahnah, M., Hasan, M. R., Xu, L., & Bagheri, H. (2025) · Empirical Software Engineering · doi:10.1007/s10664-025-10687-1 · Cited by 54
“TestPilot [30] utilizes LLMs for generating unit test cases for JavaScript, employing a few-shot learning approach to refine prompts with failing tests and error messages.”
MethodAutomatic High-Level Test Case Generation using Large Language Models
Hasan, N. B., Islam, M. A., Khan, J. Y., Senjik, S., & Iqbal, A. (2025) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr66628.2025.00105 · Cited by 28
Towards Understanding the Effectiveness of Large Language Models on Directed Test Input Generation
Jiang, Z., Wen, M., Cao, J., Shi, X., & Jin, H. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695513 · Cited by 56
“…the context in natural language ( documentation and error messages are provided to direct LLMs to cover certain properties or circumstances [43, 53]), and the context in code [16, 42, 45, 47, 61] ( unreached branches or executable paths are provided to guide input generation for higher coverage).”
RePower: An LLM-driven autonomous platform for power system data-guided research
Liu, Y., Jia, M., Zhang, Y., Wang, J., He, G., Zhong, S., & Dang, Z. (2025) · Patterns · doi:10.1016/j.patter.2025.101211 · Cited by 24
Generative AI to Generate Test Data Generators
Baudry, B., Etemadi, K., Fang, S., Gamage, Y., Liu, Y., Liu, Y., Monperrus, M., Ron, J., Silva, A., & Tiwari, D. (2024) · IEEE Software · doi:10.1109/ms.2024.3418570 · Cited by 28
“Several studies have experimented with LLMs and machine learning models as tools to aid software testing, including the automated generation of unit tests [7].”
MethodAutomatic Library Migration Using Large Language Models: First Results
Almeida, A., Xavier, L., & Valente, M. T. (2024) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1145/3674805.3690746 · Cited by 35
“To facilitate comparison and analysis, we also present the results for the original application (before migration) and for the baseline migration, i.e., the one we performed manually.”
The Impact of Prompt Programming on Function-Level Code Generation
Khojah, R., Neto, F. G. D. O., Mohamad, M., & Leitner, P. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3587794 · Cited by 76
“Providing package information can naturally reduce ImportErrors but may cause hallucinated imports if unfamiliar to the LLM.”
Abdullin, A., Derakhshanfar, P., & Panichella, A. (2025) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst62969.2025.10989033 · Cited by 42
“TestSpark [48], ChatUniTest [13] and TestPilot [50] are examples of LLM-based test generation tools.”
Rug: Turbo Llm for Rust Unit Test Generation
Cheng, X., Sang, F., Zhai, Y., Zhang, X.-K., & Kim, T. (2025) · International Conference on Software Engineering · doi:10.1109/icse55347.2025.00097 · Cited by 39
“For existing LLM based auto-testing tools [7], [8], [30], [31], testing code generation is finished in one shot like the left part in Fig.”
An Empirical Study on How Large Language Models Impact Software Testing Learning
Mezzaro, S., Gambi, A., & Fraser, G. (2024) · International Conference on Evaluation and Assessment in Software Engineering (EASE) · doi:10.1145/3661167.3661273 · Cited by 35
“Schäfer et al. proposed TestPilot [14] to automatically generate unit tests in JavaScript from a testing skeleton template, the code of the function to be tested and its documentation.”
BackgroundMethodHaldar, S., Pierce, M., & Fernando Capretz, L. (2025) · IEEE Access · doi:10.1109/access.2025.3545882 · Cited by 16
“In the software testing paradigm, the application of LLM tools has been widely studied in various activities [19], [20] including unit test generation [21], [22], regression test case generation [23], test script generation [22], and impact analysis of requirement changes [24].”
Reasoning and Planning with Large Language Models in Code Development
Ding, H., Fan, Z., Guehring, I., Gupta, G. P., Ha, W., Huan, J., Liu, L. Q., Omidvar-Tehrani, B., Wang, S., & Zhou, H. (2024) · ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) · doi:10.1145/3637528.3671452 · Cited by 40
“In [102]”
Optimizing Search-Based Unit Test Generation with Large Language Models: An Empirical Study
Xiao, D., Guo, Y., Li, Y., & Chen, L. (2024) · Asia-Pacific Symposium on Internetware · doi:10.1145/3671016.3674813 · Cited by 20
“Unit test generation is crucial in software development as it ensures the reliability and correctness of code by automatically generating tests to evaluate individual units of code in isolation [32].”
LLM4TDD: Best Practices for Test Driven Development Using Large Language Models
Piya, S., & Sullivan, A. (2024) · International Workshop on Large Language Models for Code (LLM4Code) · doi:10.1145/3643795.3648382 · Cited by 42
“There are several recent bodies of work that focus on using LLMs for test generation [10, 15, 21, 24].”
BackgroundRehan, S., Al‐Bander, B., & Ahmad, A. A.-S. (2025) · Electronics · doi:10.3390/electronics14071463 · Cited by 30
“Despite the benefits of LLMs being applied in software-engineering-related tasks such as test unit generation [17,26], their adoption and implementation have their own challenges and limitations.”
Doc2OracLL: Investigating the Impact of Documentation on LLM-Based Test Oracle Generation
Hossain, S. B., Taylor, R., & Dwyer, M. B. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3729354 · Cited by 42
“All of these techniques either require [10, 37] or allow [11, 18] for the implementation of the method under test (MUT) to be included in the ML model’s input to generate a test oracle.”
CI/CD Configuration Practices in Open Source Android Apps: An Empirical Study
Ghaleb, T. A., Abduljalil, O. A. I., & Hassan, S. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3736758 · Cited by 45
COFFE: A Code Efficiency Benchmark for Code Generation
Peng, Y., Wan, J., Li, Y., & Ren, X. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3715727 · Cited by 63
“In contrast to current LLM-based test case generation methods [7, 41, 45, 66, 72, 73], STGen aims to generate test cases to evaluate the time efficiency of code solutions under extreme conditions rigorously.”
How Scientists Use Large Language Models to Program
O’Brien, G. E. (2025) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3706598.3713668 · Cited by 42
“There may also be roles for Code LLMs in test development: AI-supported automatic test-development is an active area of research [11, 26, 88], although these efforts would likely have to be adapted to fit scientific contexts.”
Migrating Code At Scale With LLMs At Google
Ziftci, C., Nikolov, S., Sjövall, A., Kim, B., Codecasa, D., & Kim, M. (2025) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3696630.3728542 · Cited by 56
“…the introduction of Large Language Models (LLMs) created opportunities to support several software engineering tasks, including generating tests [6, 59, 61], code refactoring [60], documentation generation [17], bug detection [5], fault localization [31], fixing bugs [62], code reviews [65, 66],…”
He, Y., Huang, J., Rong, Y., Guo, Y., Wang, E., & Chen, H. (2024) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3650212.3680342 · Cited by 32
“A desired training set for this aim should include a large number of test functions paired with their tested source functions, also called focal functions [59, 56].”
InfluentialOn Inter-Dataset Code Duplication and Data Leakage in Large Language Models
López, J. A. H., Chen, B., Saad, M., Sharma, T., & Varró, D. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3504286 · Cited by 43
“Additionally, Schafer et al. [49] observe that S TAR C ODER [28], along with other similar models like C ODEX [50], exhibits improved performance in test generation when using H UMAN E VAL samples (available at G IT H UB ) compared to SF110 samples (available at Sourceforge but not at G IT H UB…”
ResultPytester: Deep reinforcement learning for text-to-testcase generation
Takerngsaksiri, W., Charakorn, R., Tantithamthavorn, C. K., & Li, Y.-F. (2025) · Journal of Systems and Software · doi:10.1016/j.jss.2025.112381 · Cited by 32
How Scientists Use Large Language Models to Program
O'Brien, G. (2025) · arXiv · doi:10.48550/arxiv.2502.17348 · Cited by 14
A 2030 Roadmap for Software Engineering
Pezzè, M., Abrahão, S., Penzenstadler, B., Poshyvanyk, D., Roychoudhury, A., & Yue, T. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3731559 · Cited by 13
AugmenTest: Enhancing Tests with LLM-Driven Oracles
Khandaker, S. M., Kifetew, F. M., Prandi, D., & Susi, A. (2025) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst62969.2025.10988926 · Cited by 33
“In the domain of unit test generation, Sch ¨ afer et al. present TESTPILOT [12], a system that uses LLMs for end-to-end test generation, achieving high statement coverage and effective assertion generation.”
SelfPiCo: Self-Guided Partial Code Execution with LLMs
Xue, Z., Gao, Z., Wang, S., Hu, X., Xia, X., & Li, S. (2024) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3650212.3680368 · Cited by 31
“Recently there are also some tools leveraging LLMs to generate unit test [36, 59, 84].”
JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Models
Cao, J., Chen, Z., Wu, J., Cheung, S.-C., & Xu, C. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695470 · Cited by 63
“Each method has a docstring and can be complete or incomplete, i.e. , the method body is a TODO to be filled in by LLMs.”
Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Models
Wang, Y., Jiang, T., Liu, M., Chen, J., Mao, M., Liu, X., Ma, Y., & Zheng, Z. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3715749 · Cited by 57
Large Language Models for Security Operations Centers: A Comprehensive Survey
Habibzadeh, A., Feyzi, F., & Atani, R. E. (2026) · Journal of Electrical and Computer Engineering · doi:10.1155/jece/3383674 · Cited by 13
“Furthermore, Within software engineering, LLMs are utilized for generating source code [36, 37], Software testing [38], bug fixing [39, 40], and program repair [41, 42].”
Large Language Models for Combinatorial Optimization: A Systematic Review
Ros, F. D., Soprano, M., Gaspero, L. D., & Roitero, K. (2026) · ACM Computing Surveys · doi:10.1145/3801961 · Cited by 69
A Systematic Literature Review on Large Language Models for Automated Program Repair
Zhang, Q., Fang, C., Xie, Y., Ma, Y., Sun, W., Yang, Y. J., & Chen, Z. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3799693 · Cited by 190
Self-Healing Test Automation Framework using AI and ML
Saarathy, S., Bathrachalam, S., & Rajendran, B. (2024) · International Journal of Strategic Management · doi:10.47604/ijsm.2843 · Cited by 36
“These frameworks leverage AI/ML models to analyze test failures, adapt to changes in the application, and apply appropriate fixes without human intervention (Liu et al., 2023; Schäfer et al., 2023).”
MethodHarnessing the Power of Large Language Models for Automated Code Generation and Verification
Antero, U., Blanco, F. O., Oñativia, J., Sallé, D., & Sierra, B. (2024) · Robotics · doi:10.3390/robotics13090137 · Cited by 16
Viger, T., Murphy, L., Diemert, S., Menghi, C., Joyce, J., Sandro, A. D., & Chećhik, M. (2024) · Proceedings/Proceedings - International Symposium on Software Reliability Engineering · doi:10.1109/issre62328.2024.00035 · Cited by 13
“These include the writing of formal specifications [4], hazard analysis [6], goal modeling [3], software modeling [2], and testing [20].”
Towards Specification-Driven LLM-Based Generation of Embedded Automotive Software
Patil, M. S., Ung, G., & Nyberg, M. (2024) · Lecture notes in computer science · doi:10.1007/978-3-031-75434-0_9 · Cited by 26
A Matching Game for LLM Layer Deployment in Heterogeneous Edge Networks
Picano, B., Hoang, D. T., & Nguyen, D. N. (2025) · IEEE Open Journal of the Communications Society · doi:10.1109/ojcoms.2025.3561605 · Cited by 21
“Based on empirical studies on LLM [14], [39], [40], [41], as a reference scenario, we consider a heterogeneous edge node network, where τ le , e and t l , e are uniformly selected within [4 , 8] ms and [3 , 20] ms, respectively.”
Improving Retrieval-Augmented Deep Assertion Generation via Joint Training
Zhang, Q., Fang, C., Zheng, Y., Qian, R., Yu, S., Zhao, Y., Zhou, J., Yang, Y., Zheng, T., & Chen, Z. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3545970 · Cited by 17
“Unlike integration and system testing [4], which assess the entire software system as a whole, including different components and external dependencies, unit testing involves each individual component [5], [6].”
UTFix: Change Aware Unit Test Repairing using LLM
Rahman, S., Kuhar, S., Çirişci, B., Garg, P., Wang, S., Ma, X., Deoras, A., & Ray, B. (2025) · Proceedings of the ACM on Programming Languages · doi:10.1145/3720419 · Cited by 21
Correctness assessment of code generated by Large Language Models using internal representations
Bui, T.-D., Vu, T. T., Nguyen, T.-T., Nguyen, S., & Vo, H. D. (2025) · Journal of Systems and Software · doi:10.1016/j.jss.2025.112570 · Cited by 48
Towards Integrating Emerging AI Applications in SE Education
Vierhauser, M., Groher, I., Antensteiner, T., & Sauerwein, C. (2024) · IEEE International Conference on Software Engineering Education and Training (CSEE&T) · doi:10.1109/cseet62301.2024.10663045 · Cited by 30
“…challenges, AI tools in general, and LLM applications in particular, can also be meaningfully employed in a wide variety of SE courses, commonly part of computer science curricula, supporting learners in tasks such as test case generation, architecture pattern creation, or bug detection [31, 35].”
BackgroundImproving Deep Assertion Generation via Fine-Tuning Retrieval-Augmented Pre-Trained Language Models
Zhang, Q., Fang, C., Zheng, Y., Zhang, Y., Zhao, Y. F., Huang, R., Zhou, J., Yang, Y. J., Zheng, T., & Chen, Z. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3721128 · Cited by 20
“Unlike integration and system testing [6], which evaluate the system’s overall functionality, unit testing is dedicated to ensuring that individual components of the system operate as intended by the developer, enabling early detection and diagnosis of issues during software development [43].”
Luo, W., Keung, J., Yang, B., Ye, H., Goues, C. L., Bissyandé, T. F., Tian, H., & Le, X.-B. D. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3733599 · Cited by 36
Large Language Models for Automated Web-Form-Test Generation: An Empirical Study
Li, T., Cui, C., Huang, R., Towey, D., & Ma, L. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3735553 · Cited by 37
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.