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 101–200 of 437
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
An empirical study on capability of Large Language Models in understanding code semantics
Nguyen, T.-T., Vu, T. T., Vo, H. D., & Nguyen, S. (2025) · Information and Software Technology · doi:10.1016/j.infsof.2025.107780 · Cited by 33
Standing on the Shoulders of Giants: Bug-Aware Automated GUI Testing via Retrieval Augmentation
Chen, M., Liu, Z., Chen, C., Wang, J., Wu, B., Hu, J. C., & Wang, Q. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3715755 · Cited by 28
Mokav: Execution-driven differential testing with LLMs
Etemadi, K., Mohammadi, B., Su, Z., & Monperrus, M. (2025) · Journal of Systems and Software · doi:10.1016/j.jss.2025.112571 · Cited by 28
“As previous work demonstrates, given appropriate information, LLMs can generate a high number of diverse and novel test inputs [55].”
Luo, Z., Zhao, H., Wolff, D., Cadar, C., & Roychoudhury, A. (2026) · IEEE Symposium on Security and Privacy (S&P) · doi:10.1109/sp63933.2026.00003 · Cited by 31
“Beyond software security, we see this as a compelling opportunity to explore and expand the boundaries of what kind of reasoning LLM agents are truly capable of, especially in domains requiring precise, structured, and symbolic analysis.”
Sifting through the Chaff: On Utilizing Execution Feedback for Ranking the Generated Code Candidates
Sun, Z., Wan, Y., Li, J., Zhang, H., Jin, Z., Li, G., & Lyu, C. (2024) · Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3691620.3695000 · Cited by 10
Increasing Test Coverage by Automating BDD Tests in Proofs of Concepts (POCs) using LLM
dos Santos, S. R. R., Fernandes, R. E. S., dos Santos, M. C. B., Soares, M. S., Rocha, F. G., & Marczak, S. D. S. (2024) · Brazilian Symposium on Software Quality (SBQS) · doi:10.1145/3701625.3701637 · Cited by 13
“Unlike the work of Schafer et al. [14], validated only for JavaScript, and the work of Wannita et al. [18], restricted to use in Python, our approach is agnostic about the language and framework.”
Garlapati, A., Parmesh, M. N. V. S. S. M., Savitha, & Jaisri, S. (2024) · IEEE Global Conference for Advancement in Technology (GCAT) · doi:10.1109/gcat62922.2024.10923987 · Cited by 15
Mutation Testing via Iterative Large Language Model-Driven Scientific Debugging
Straubinger, P., Kreis, M., Lukasczyk, S., & Fraser, G. (2025) · IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW) · doi:10.1109/icstw64639.2025.10962485 · Cited by 22
“For instance, studies have used LLMs like ChatGPT to generate tests for JavaScript [22], and Code Llama for languages such as C# and C++ [38].”
Less Is More: On the Importance of Data Quality for Unit Test Generation
Zhang, J., Hu, X., Gao, S., Xia, X., Lo, D., & Li, S. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3715778 · Cited by 19
“Besides, Schafer et al. [54] conducted an empirical evaluation of using LLMs for unit test generation.”
STRUT: Structured Seed Case Guided Unit Test Generation for C Programs using LLMs
Liu, J., Chao, L., Chen, R., Li, S., Gu, B., & Yang, M. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3728970 · Cited by 15
“Methods for generating unit tests based on LLMs aim to produce high-quality test cases by integrating LLMs with program analysis-based test generation, leveraging techniques such as fine-tuning [36] or prompt engineering [13, 26, 34].”
exLong: Generating Exceptional Behavior Tests with Large Language Models
Zhang, J., Liu, Y., Nie, P., Li, J. J., & Gligoric, M. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00176 · Cited by 24
“Transformer models have been used to generate tests [9], [22], [31], [32], [40], [46], [56], [59], [63] and test oracles [8], [57], [61].”
Automatic test case generation using natural language processing: A systematic mapping study
Navarro, J., & Ibarra, R. (2025) · Information and Software Technology · doi:10.1016/j.infsof.2025.107929 · Cited by 17
LLMLOOP: Improving LLM-Generated Code and Tests Through Automated Iterative Feedback Loops
Ravi, R., Bradshaw, D., Ruberto, S., Jahangirova, G., & Terragni, V. (2025) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme64153.2025.00109 · Cited by 44
“Moreover, the community could extend its capabilities, optimize its performance, and explore new feedback mechanisms.”
Understandable Test Generation Through Capture/Replay and LLMs
Deljouyi, A. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3639478.3639789 · Cited by 15
“Recent advancements in this domain have notably leaned towards deploying contemporary techniques, particularly focusing on LLMs [20, 21, 27, 31, 32].”
MethodPractitioners’ Expectations on Automated Test Generation
Yu, X., Liu, L., Hu, X., Keung, J., Xia, X., & Lo, D. (2024) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3650212.3680386 · Cited by 16
User Centric Evaluation of Code Generation Tools (Invited Paper)
Miah, T., & Zhu, H. (2024) · IEEE International Conference on Artificial Intelligence Testing (AITest) · doi:10.1109/aitest62860.2024.00022 · Cited by 25
“ChatUNitTest [6], TestPilot [7], etc. are for the generation of test codes; see [8] for a survey.”
BackgroundPașca, E. M., Delinschi, D., Erdei, R., & Matei, O. (2025) · IEEE Access · doi:10.1109/access.2025.3554960 · Cited by 17
“…strategies to create comprehensive test suites that improve coverage and accuracy [11]; Adaptive Test Generation with LLMs: Approaches like TestPilot , introduced by Schäfer et al. [13], utilize LLMs to generate adaptive test cases, improving test coverage and uncovering unique API vulnerabilities.”
Ran, D., Li, L., Zhu, L., Cao, Y., Zhao, L., Tan, X., Liang, G., Wang, Q., & Xie, T. (2025) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3696630.3728551 · Cited by 13
OptDisPro: LLM-Based Multi-Agent Framework for Flexibly Adapting Heuristic Optimal DisFlow
Li, Z., Yang, H., Liu, Y., Xiang, Y., Gao, H., Liu, J., & Liu, J. (2025) · IEEE Transactions on Smart Grid · doi:10.1109/tsg.2025.3620496 · Cited by 12
“…automatic programming methods often require extensive fine-tuning or training data to perform well in specific domains (e.g. distribution network planning, operation optimization, optimal scheduling, etc.) [2], [3], making their application to power systems potentially costly and resource-intensive.”
Integrating Generative AI in Software Engineering Education: Practical Strategies
Li, Y., Keung, J., & Ma, X. (2024) · 2024 International Symposium on Educational Technology (ISET) · doi:10.1109/iset61814.2024.00019 · Cited by 8
“Generative AI tools offer the capability to automate diverse facets of testing [5, 16], encompassing test case generation, test scenario generation, and test result analysis.”
BackgroundIoT systems testing: Taxonomy, empirical findings, and recommendations
Minani, J. B., Fellah, Y. E., Sabir, F., Moha, N., Guéhéneuc, Y., Kuradusenge, M., & Masuda, T. (2025) · Journal of Systems and Software · doi:10.1016/j.jss.2025.112408 · Cited by 15
AsserT5: Test Assertion Generation Using a Fine-Tuned Code Language Model
Primbs, S., Fein, B., & Fraser, G. (2025) · doi:10.1109/ast66626.2025.00008 · Cited by 17
Zhang, Y., Lu, Q., Liu, K., Dou, W., Zhu, J., Li, Q., Zhang, C., Lin, Z., & Wei, J. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3763791 · Cited by 29
“More recently, the application of large language models (LLMs) in unit test case generation has been extensively explored in both academia and industry [2, 3, 33, 41, 51].”
Test case generation using large language models: a systematic literature review
Tasarsu, M., Tokmak, A. V., & Catal, C. (2026) · Cluster Computing · doi:10.1007/s10586-026-06021-z · Cited by 19
Unit Test Generation Using Large Language Models: A Systematic Literature Review
Zapkus, D. M., & Slotkienė, A. (2024) · Vilnius University Open Series · doi:10.15388/lmitt.2024.20 · Cited by 18
Towards an Intelligent Test Case Generation Framework Using LLMs and Prompt Engineering
Boukhlif, M., Kharmoum, N., Hanine, M., Kodad, M., & Lagmiri, S. N. (2024) · Information systems engineering and management · doi:10.1007/978-3-031-66854-8_3 · Cited by 9
Software System Testing Assisted by Large Language Models: An Exploratory Study
Augusto, C., Morán, J., Bertolino, A., de la Riva, C., & Tuya, J. (2025) · Lecture notes in computer science · doi:10.1007/978-3-031-80889-0_17 · Cited by 15
“In Software Testing, one of the cornerstones of the SE field, several works have explored how to use LLMs to generate test code [12] or also to generate test scenarios [13].”
LLM-enhanced evolutionary test generation for untyped languages
Yang, R., Xu, X., & Wang, R. (2025) · Automated Software Engineering · doi:10.1007/s10515-025-00496-7 · Cited by 18
“Currently, automatically generated test suites are mostly used as inspiration for manually creating high coverage test suites because they often contain errors that prevent them from being used directly (Schäfer et al. 2023).”
Assertions in software testing: survey, landscape, and trends
Taromirad, M., & Runeson, P. (2025) · International Journal on Software Tools for Technology Transfer · doi:10.1007/s10009-025-00794-1 · Cited by 16
RAG-Driven multiple assertions generation with large language models
Liu, Z., Wang, H., Xu, T., & Wang, B. (2025) · Empirical Software Engineering · doi:10.1007/s10664-025-10641-1 · Cited by 12
“Existing works have already demonstrated the potential of LLMs to generate high-quality test cases (Schäfer et al. 2024; Wang et al. 2024b).”
Feature-Driven End-to-End Test Generation
Alian, P., Nashid, N., Shahbandeh, M., Shabani, T., & Mesbah, A. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00141 · Cited by 32
“Some research concentrates on software unit test generation [46], [47], [48].”
Yang, R., Xu, X., & Wang, R. (2025) · Journal of Computer Languages · doi:10.1016/j.cola.2025.101348 · Cited by 9
Wang, B., Deng, M., Chen, M., Lin, Y., Zhou, J., & Zhang, J. M. (2025) · Automated Software Engineering · doi:10.1007/s10515-025-00549-x · Cited by 13
“The main construct threat arises from the evaluation metrics we used, e.g., the number of Top-1 located bugs in FL and the number of Top-1 fixed bugs in APR. Never-theless, both metrics are widely adopted in FL and APR communities, and play as the main metric in evaluation.”
Understanding LLM-Driven Test Oracle Generation
Bodicoat, A., Jahangirova, G., & Terragni, V. (2025) · ACM International Conference on AI-Powered Software (AIware) · doi:10.1109/aiware69974.2025.00011 · Cited by 16
“Sch ¨ afer et al. [34] evaluated the LLM-driven test tool T EST P ILOT , in terms of code coverage and failure detection.”
Evaluating the Effectiveness of Large Language Models in Automated Unit Test Generation
Godage, T., Nimishan, S., Vasanthapriyan, S., Vigneshwaran, P., Charles, J., & Thuseethan, S. (2025) · International Conference on Advanced Research in Computing (ICARC) · doi:10.1109/icarc64760.2025.10962997 · Cited by 6
“However, it achieved a median statement coverage of 70.2% and branch coverage of 52.8% [12].”
InfluentialImproving the Readability of Automatically Generated Tests Using Large Language Models
Biagiola, M., Ghislotti, G., & Tonella, P. (2025) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst62969.2025.10989020 · Cited by 20
“Examples of test generators belonging to this category include TestPilot [16], a few-shot LLM-based test generator for Javascript, ChatUnitTest [17] and ChatTester [18], proposing an LLM-based generation-validation-repair framework for generating Java unit tests, and TestSpark [19], a plugin for…”
Hamdi, A., Kassab, H., Bahaa, M., & Mohamed, M. (2025) · Lecture notes on data engineering and communications technologies · doi:10.1007/978-3-031-91351-8_7 · Cited by 11
CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generation
Li, K., Yuan, Y., Yu, H., Guo, T., & Cao, S. (2025) · IEEE Transactions on Evolutionary Computation · doi:10.1109/tevc.2025.3593272 · Cited by 27
“Studies, such as [25], [26], and [27] have explored the effectiveness of LLMs in automating program testing.”
Exploring Large Language Models in Information Systems: A Survey
Bianchini, F., & Marinacci, M. (2025) · Springer eBooks · doi:10.1007/978-3-031-92285-5_5 · Cited by 9
Methods and Techniques of Agentic Software Engineering: A Systematic Literature Review
Otoum, N., & Elkhalili, N. (2026) · IEEE Access · doi:10.1109/access.2026.3652325 · Cited by 10
“Test-driven development agents take this further by generating both the tests and the implementation code in lockstep, ensuring that the requirements, tests and final program stay aligned [18], [32], [42].”
Lin, Y.-C., Kumar, A., Chang, N. H., Zhang, W., Zakir, M., Apte, R., He, H., Wang, C., & Jang, J. R. (2024) · IEEE LLM Aided Design Workshop (LAD) · doi:10.1109/lad62341.2024.10691715 · Cited by 12
“TestPilot [26], on the other hand, focuses on adjusting the LLM application process and Prompt Engineering without fine-tuning, also achieving commendable results in code generation for the Mocha Framework.”
MethodLarge Language Model-Based Optimization for System-Level Test Program Generation
Schwachhofer, D., Domanski, P., Becker, S., Wagner, S., Sauer, M., Pflüger, D., & Polian, I. (2024) · Proceedings · doi:10.1109/dft63277.2024.10753556 · Cited by 9
“Thus, it has already found application in unit test generation [7].”
Ruberto, S., Perera, J., Jahangirova, G., & Terragni, V. (2025) · IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW) · doi:10.1109/icstw64639.2025.10962503 · Cited by 6
“The advancements in applying Large Language Models (LLMs) to software engineering tasks [4] have sparked interest in their potential for generating test cases [5], [6] and, more specifically, test oracles that capture expected behavior [7].”
CodeDoctor: multi-category code review comment generation
Li, Y., Wu, Y., Wang, Z., Huang, L., Wang, J., Li, J. K., & Huang, M. (2025) · Automated Software Engineering · doi:10.1007/s10515-025-00491-y · Cited by 12
“Existing researches(Pornprasit and Tantithamthavorn 2024; Schäfer et al. 2023; Yeow et al. 2024) widely utilize GPT3.”
Altın, M., Mutlu, B., Kılınç, D., & CAKIR, A. M. (2025) · IEEE Access · doi:10.1109/access.2025.3571994 · Cited by 5
“The study reveals that test generation effectiveness is largely influenced by the size and training of the LLM, rather than by dependency on specific models, suggesting a promising future for LLM-driven unit test automation [10].”
CubeTesterAI: Automated JUnit Test Generation Using the LLaMA Model
Gorla, D., Kumar, S., Lorenzini, P. N. R., & Alipourfaz, A. (2025) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst62969.2025.10988978 · Cited by 11
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest
Alves, A., & Hora, A. (2025) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr66628.2025.00122 · Cited by 6
Ehsani, R., Pathak, S., Parra, E., Haiduc, S., & Chatterjee, P. (2025) · Empirical Software Engineering · doi:10.1007/s10664-025-10745-8 · Cited by 20
“Ethics Declaration: Not applicable.”
Walczak, J., Tomalak, P., & Laskowski, A. (2026) · Journal of Systems and Software · doi:10.1016/j.jss.2026.112834 · Cited by 12
From benchmarks to deployment: a comprehensive review of agentic AI evaluation
Kehkashan, T., Abdullah, M. I., Al‐Shamayleh, A. S., Ivković, N., Ismail, N. A., Ahmad, S. S. S., Rehman, A., & Akhunzada, A. (2026) · Artificial Intelligence Review · doi:10.1007/s10462-026-11571-0 · Cited by 19
Detecting Test Smells in Python Test Code Generated by LLM: An Empirical Study with GitHub Copilot
Alves, V. A., Santos, C. D. S., Bezerra, C. I. M., & Machado, I. (2024) · Simpósio Brasileiro de Engenharia de Software (SBES) · doi:10.5753/sbes.2024.3561 · Cited by 12
“Although several studies [27, 29] have found promising results on the capability and limitations of LLMs, they did not evaluate the design quality of the generated test code, focusing mainly on the validity of these codes.”
BackgroundMethodInfluentialSymbolic Execution with Test Cases Generated by Large Language Models
Xu, J., Xu, J., Chen, T., & Ma, X. (2024) · IEEE International Conference on Software Quality, Reliability and Security (QRS) · doi:10.1109/qrs62785.2024.00031 · Cited by 10
“The research work mentioned above, which utilizes LLMs to support software testing, either involves generating test cases for a specific domain using LLMs [20], [21], [22], or addresses some issues in traditional testing processes with LLMs [34], [35].”
MethodLLM4VV: Exploring LLM-as-a-Judge for Validation and Verification Testsuites
Sollenberger, Z., Patel, J., Munley, C., Jarmusch, A., & Chandrasekaran, S. (2024) · International Conference for High Performance Computing, Networking, Storage and Analysis (SC) · doi:10.1109/scw63240.2024.00238 · Cited by 22
“For instance, Shhafer et al. [21] evaluated LLMs for automated JavaScript unit test generation, while other works have investigated LLM-based test case generation for various programming languages and software systems [22], [23].”
Using Large Language Models to Generate Concise and Understandable Test Case Summaries
Djajadi, N., Deljouyi, A., & Zaidman, A. (2025) · IEEE International Conference on Program Comprehension · doi:10.1109/icpc66645.2025.00040 · Cited by 5
“Recent advancements in large language models (LLMs) have led to investigations into their usefulness for test generation [15]–[19].”
Schwachhofer, D., Domanski, P., Becker, S., Wagner, S., Sauer, M., Pflüger, D., & Polian, I. (2024) · IEEE European Test Symposium (ETS) · doi:10.1109/ets61313.2024.10567741 · Cited by 7
“The proposed approach is promising for SLT program generation and has been applied in unit test generation [9].”
MethodEvidências sobre o uso do ChatGPT no ensino de modelagem de software: um experimento controlado
Murad, S. B., Lemos, F. F. S., Melo, S. M., Paschoal, L. N., & Prates, J. M. (2025) · Anais do Workshop sobre Educação em Computação (WEI) · doi:10.5753/wei.2025.9261 · Cited by 4
Intent Based E2E Automated Test Case Generation for Web Applications Using LLM
Abideen, Z. U., & Guo, J. (2025) · IEEE Annual International Computer Software and Applications Conference (COMPSAC) · doi:10.1109/compsac65507.2025.00161 · Cited by 4
“While the baseline TestPi-lot [26] achieves an average statement coverage of 70.2% and branch coverage of 52.8%, IntentPilot demonstrates a significant improvement, reaching 79.2% statement coverage and 63.4% branch coverage, reflecting gains of 9.0% and 10.6%, respectively.”
InfluentialHallucination to Consensus: Multi-Agent LLMs for End-to-End JUnit Test Generation
Xu, Q., Wang, G., Briand, L., & Liu, K. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3803418 · Cited by 24
“The Requirement Engineer generally contributes to improving oracle accuracy, with its impact expected to be greater when the quality of the natural language description is low.”
Retrieval-Augmented Generation for Software Requirement-Based Test Case Generation
Wang, Z., Guo, X., & Tsuchiya, T. (2025) · IEEE International Conference on Software Quality, Reliability and Security (QRS) · doi:10.1109/qrs65678.2025.00022 · Cited by 6
“Recent advances in Large Language Models (LLMs) have demonstrated their capability in automating various software testing tasks, such as generating unit tests [9], [10] and supporting software acceptance testing [11].”
Crowdsourcing Framework for Security Testing and Verification of Industrial Cyber-Physical Systems
Li, Z., Ding, Y., Zhao, R., Wang, S., & Li, J. (2025) · Sensors · doi:10.3390/s26010079 · Cited by 4
Can test cases generated by large language models facilitate automated program repair?
Zhang, C., Wang, H., Xu, C., Liu, J., Liu, K., & Liu, Z. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10802-w · Cited by 9
“Recently, methods for generating test cases based on large models have demonstrated remarkable automatically generating test oraclescapability in Schäfer et al. ( 2023).”
Enhancing Automated Unit Test Generation with Large Language Models: A Systematic Literature Review
Zhang, J., Hu, X., Gao, C., Xia, X., & Li, S. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3802827 · Cited by 13
Automation of Test Skeletons Within Test-Driven Development Projects
Ölmez, M. M., & Gehringer, E. F. (2024) · IEEE International Conference on Software Engineering Education and Training (CSEE&T) · doi:10.1109/cseet62301.2024.10663016 · Cited by 7
“Various tools have been developed to address test generation in the testing area, utilizing diverse algorithms [11], [12], [31], approaches [32], [33], and extensions [34], [35].”
BackgroundMethodKarlsson, A., Lindmaa, E., Sun, S., & Staron, M. (2024) · Lecture notes in computer science · doi:10.1007/978-3-031-78392-0_4 · Cited by 9
LLM Prompt Engineering for Automated White-Box Integration Test Generation in REST APIs
Rincon, A. M., Vincenzi, A. M. R., & Faria, J. P. (2025) · IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW) · doi:10.1109/icstw64639.2025.10962507 · Cited by 4
“…in artificial This research is partially supported by Brazilian Funding Agencies FAPESP (Grant nº 2019/23160-0 and 2023/00001-9), CAPES (Grant nº 001 and 88887.888653/2023-00), and CNPq. intelligence have provided tools to address these challenges, particularly Large Language Models (LLMs) [5, 6].”
InfluentialOn the Possibility of Breaking Copyleft Licenses When Reusing Code Generated by ChatGPT
Colombo, G., Mariani, L., Micucci, D., & Riganelli, O. (2025) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc66645.2025.00060 · Cited by 8
“LLMs have been also used to automatically generate unit test cases [12].”
From Prompts to Properties: Rethinking LLM Code Generation with Property-Based Testing
Bose, D. B. (2025) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3696630.3728702 · Cited by 10
“Similarly, as seen in tools like JQF, coverage-guided fuzzing refines input generation based on execution feedback to improve bug detection [21].”
AI-Driven Testing: Unleashing Autonomous Systems for Superior Software Quality Using Generative AI
Helmy, M., Sobhy, O., & ElHusseiny, F. (2024) · International Telecommunications Conference (ITC-Egypt) · doi:10.1109/itc-egypt61547.2024.10620598 · Cited by 7
An Analysis of LLM Fine-Tuning and Few-Shot Learning for Flaky Test Detection and Classification
More, R., & Bradbury, J. S. (2025) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst62969.2025.10988995 · Cited by 6
“This is particularly true for tasks such as test generation, defect prediction, and flaky test categorization [3], [4].”
Set Up My Smart Home as I Want
Shirali-Shahreza, S. (2024) · Computer · doi:10.1109/mc.2024.3394673 · Cited by 6
GLLaMoR: Graph-based Logic Locking by Large Language Models for Enhanced Robustness
Saha, A., Roy, P. B., Knechtel, J., Karri, R., Sinanoglu, O., & Alrahis, L. (2025) · IEEE VLSI Test Symposium (VTS) · doi:10.1109/vts65138.2025.11022851 · Cited by 3
“An empirical evaluation [33] highlights the benefits of prompt crafting with GPT-3.”
Detecção de Conflitos Semânticos com Testes Gerados por LLM
Barbosa, N., Borba, P. H. M., & Silva, L. D. (2025) · Simpósio Brasileiro de Testes de Software Sistemático e Automatizado (SAST) · doi:10.5753/sast.2025.13826 · Cited by 3
LLMs as Test Generators: A Comparative Benchmarking Study
da Silva, E. C. H., Coelho, R. D. S., & da Silva, L. F. (2025) · Simpósio Brasileiro de Engenharia de Software (SBES) · doi:10.5753/sbes.2025.9618 · Cited by 7
“Schäfer et al. [35] also use the available documentation to support automated test generation through their tool called TestPilot.”
Using LLMs to Bridge the Gaps in QA Test Plans at Firefox
Pangas, J., Mujahid, S., Abdellatif, A., & Castelluccio, M. (2025) · IEEE Software · doi:10.1109/ms.2025.3621128 · Cited by 3
Can generative AI detect and fix real-world cryptographic misuses?
Firouzi, E., & Ghafari, M. (2025) · Journal of Systems and Software · doi:10.1016/j.jss.2025.112650 · Cited by 7
Arasteh, B., Bulut, F., İnce, İ. F., Sefati, S. S., Kusetoğulları, H., & Kiani, F. (2025) · Journal of Electronic Testing · doi:10.1007/s10836-025-06210-5 · Cited by 3
Software Testing with Large Language Models: An Interview Study with Practitioners
Santana, D., de Magalhães, C. V. C., & Santos, R. D. S. (2025) · ACM International Conference on AI-Powered Software (AIware) · doi:10.1109/aiware69974.2025.00018 · Cited by 8
“However, to support transparency, we included anonymized quotations to illustrate reported practices while preserving participant anonymity.”
Less Is More: Failing Test Generation with Large Language Models
Li, T.-O., Yan, X., Zong, W., Wang, Y., Tian, H., Xu, C., Wang, Y., Cheung, S.-C., & Kramer, J. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3793675 · Cited by 3
“Schafer et al. [83] also point out that additional contextual information (e.g., a usage example of a CUT) can further improve an LLM’s performance.”
Prompt engineering in LLMs for automated unit test generation: A large-scale study
Ouédraogo, W. C., Kaboré, A. K., Li, Y., Tian, H., Koyuncu, A., Klein, J., Lo, D., & Bissyandé, T. F. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10840-4 · Cited by 70
Testing the Feasibility of Schema.org Metadata Refinement Through the Use of a Large Language Model
Bengtson, J. (2024) · Journal of Library Metadata · doi:10.1080/19386389.2024.2392419 · Cited by 3
“…al. (2024) found that while ChatGPT and other LLMs can effectively produce code and provide invaluable assistance to developers they still generated errors that could waste those same devel-opers’ time and required human feedback and oversight in a similar vein to Schäfer et al.’s (2024) findings.”
Augmenting API Security Testing with Automated LLM-Driven Test Generation
Pașca, E. M., Erdei, R., Delinschi, D., & Matei, O. (2024) · Lecture notes in networks and systems · doi:10.1007/978-3-031-75016-8_11 · Cited by 3
Can Large Language Models Discover Metamorphic Relations? A Large-Scale Empirical Study
Zhang, J., Sun, C., Liu, H., & Dong, S. (2025) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner64311.2025.00011 · Cited by 12
“Specifically, LLMs have become increasingly popular for enhancing software testing [32], [33].”
Wang, S., & Shao, Y. (2025) · Data Science and Management · doi:10.1016/j.dsm.2025.06.005 · Cited by 8
Multi-Agent Assisted Automatic Test Generation for Java JSON Libraries
Wang, S., Zhong, Z., Wen, S., & Liu, Y. (2025) · Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec66846.2025.00064 · Cited by 12
“The emergence of LLM has further advanced this area, enabling ATG through prompting to code language models [7], [9], [8].”
Петрович, Р. О. (2023) · Professional Pedagogics · doi:10.32835/2707-3092.2023.26.58-73 · Cited by 45
Ramakrishna, A., Gupta, R., Lehmann, J., & Ziyadi, M. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.360 · Cited by 17
A Pilot Study in Surveying Data Challenges of Automatic Software Engineering Tasks
Dong, L., Lu, Q., & Zhu, L. (2024) · doi:10.1145/3663530.3665020 · Cited by 4
“Schäfer et al. [37] introduced an LLM-based adaptive test generation technique that eliminates the need for additional training or manual effort.”
B4: Towards Optimal Assessment of Plausible Code Solutions with Plausible Tests
Chen, M., Liu, Z., Tao, H., Hong, Y., Lo, D., Xia, X., & Sun, J. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695536 · Cited by 23
AutomTest 3.0: An automated test-case generation tool from User Story processing powered with LLMs
Santos, J. C. S., & Maciel, P. (2024) · Simpósio Brasileiro de Engenharia de Software (SBES) · doi:10.5753/sbes.2024.3603 · Cited by 4
Using Large Language Models for Aerospace Code Generation: Methods, Benchmarks, and Potential Values
He, R., Zhang, L., Lyu, M., Lyu, L., & Xue, C. (2025) · Aerospace · doi:10.3390/aerospace12060498 · Cited by 9
Tracking the Moving Target: A Framework for Continuous Evaluation of LLM Test Generation in Industry
Azanza, M., Lamancha, B. P., & Pizarro, E. (2025) · International Conference on Evaluation and Assessment in Software Engineering (EASE) · doi:10.1145/3756681.3756946 · Cited by 11
“Schäfer et al. [23] propose an adaptive approach for JavaScript test generation using LLMs.”
Giabbanelli, P. J., Beverley, J., Dávid, I., & Tolk, A. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5365069 · Cited by 4
Evaluating LLM-Based Regression Test Generation
Liu, J., Lee, S., Losiouk, E., & Böhme, M. (2026) · Proceedings of the ACM on software engineering. · doi:10.1145/3808129 · Cited by 18
Treefix: Enabling Execution with a Tree of Prefixes
Souza, B., & Pradel, M. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00215 · Cited by 7
“…Learning-based approaches and LLMs have been applied to various software engineering tasks [30], including type prediction [31]– [34], test generation [24], [25], [35], [36], fuzzing [14], [26], code completion [5], [37], [38], and automated repair [28], [39]–[42] and coding agents [29], [43]–[46].”
AgentTester: An LLM-Based Tool for Unit Test Generation with Automatically Generated Prompts
Chen, H., Chen, K., Zhang, F., Wang, T., & Cheng, L. (2025) · Communications in computer and information science · doi:10.1007/978-981-95-0011-6_10 · Cited by 2
Moving Faster and Reducing Risk: Using LLMs in Release Deployment
Abreu, R., Murali, V., Rigby, P. C., Maddila, C., Sun, W., Ge, J., Chinniah, K., Mockus, A., Mehta, M., & Nagappan, N. (2025) · IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1109/icse-seip66354.2025.00045 · Cited by 18
“The state-of-the-art generative LLMs of today have been effective at powering several software engineering tasks, ranging from code completion [22], [24], test generation [23], to code review [26].”
Zeng, Y., Yue, W., & Zhang, C. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3765760 · Cited by 5
Retry and Refine: A Multi-agent Framework for LLM Based Reliable Unit Test Generation
Ghosh, T., & Abbas, N. (2025) · Lecture notes in computer science · doi:10.1007/978-3-032-11402-0_7 · Cited by 2
Reference-Based Retrieval-Augmented Unit Test Generation
Zhang, Z., Liu, X., Lin, Y., Gao, X., Sun, H., & Yuan, Y. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3765758 · Cited by 11
“Previous SOTA tools like ChatUniTest [10], TestPilot [49], and HITS [59] are designed for unit test generation.”
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.