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 201–300 of 437
ViseGPT: Towards Better Alignment of LLM-generated Data Wrangling Scripts and User Prompts
Zhu, J., Cheng, X., Luo, Z., Zhou, Y., Shu, X., Weng, D., & Wu, Y. (2025) · ACM Symposium on User Interface Software and Technology (UIST) · doi:10.1145/3746059.3747689 · Cited by 8
“Inspired by the unit testing approach [64, 73], we propose ViseGPT, a tool that uses automatically generated test cases based on given prompts to assist users in validating LLM-generated data wrangling scripts.”
Quality Assessment of Python Tests Generated by Large Language Models
Alves, V. A., Bezerra, C. I. M., Machado, I., Rocha, L., Virgínio, T., & Silva, P. (2025) · International Conference on Evaluation and Assessment in Software Engineering (EASE) · doi:10.1145/3756681.3756964 · Cited by 6
Generative AI for autonomous data analytics
Fikardos, M., Lepenioti, K., Bousdekis, A., Apostolou, D., & Mentzas, G. (2026) · Intelligent Systems with Applications · doi:10.1016/j.iswa.2026.200626 · Cited by 3
Human feedback reinforcement learning for multiple agent systems online safe consensus control
Yang, L., Zhao, J. B., Chi, P., & Wang, Y. (2026) · Neurocomputing · doi:10.1016/j.neucom.2026.132618 · Cited by 2
MCTS-Refined CoT: High-Quality Fine-Tuning Data for LLM-Based Repository Issue Resolution
Wang, Y., Peng, Z., Wang, Y., Wei, Z., Yu, H., & Zhu, Z. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00154 · Cited by 14
“LESS [30]”
FailMapper: Automated Generation of Unit Tests Guided by Failure Scenarios
Dong, R., Deng, Z., Zhu, X., Du, X., liu, H., Wang, S., Wen, S., & Xiang, Y. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00197 · Cited by 3
“However, existing studies fail to detect bugs effectively [51], [52].”
SATORI: Static Test Oracle Generation for REST APIs
Alonso, J. C. G., Martin-Lopez, A., Segura, S., Bavota, G., & Ruiz–Cortés, A. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00116 · Cited by 9
“In recent years, LLMs have been applied across various stages of the software testing lifecycle [61], including unit test case generation [62]–[65], test input generation [66], [67], debugging [68], [69], and program repair [70].”
LLMs for Automated Unit Test Generation and Assessment in Java: The AgoneTest Framework
Lops, A., Narducci, F., Ragone, A., Trizio, M., & Bartolini, C. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00198 · Cited by 6
“…of the generated results, evaluating LLMs in the task of generating tests only at the method level or in contexts limited to sections of code [4], [6], [21]. b) Lack of Automation: While some prior works (e.g., T EST G EN E VAL , T EST B ENCH , P ROJECT T EST ) have started exploring…”
OOPS: Automated generation of REST API specification via LLMs
Chen, H., Li, Y., Chen, C., Lin, F., & Li, W. (2026) · Journal of Systems and Software · doi:10.1016/j.jss.2026.112914 · Cited by 5
“For instance, in test case generation, ChatTester (Yuan et al., 2024) supports only Java, TestPilot (Schäfer et al., 2023) is designed for JavaScript, and CityWalk (Zhang et al., 2025d) primarily targets C ++ .”
Software defect detection using large language models: a literature review
Chen, Y., Shen, Y., Wang, T., Ou, S., Wang, R., Li, Y., & Pan, Z. (2026) · Frontiers of Computer Science · doi:10.1007/s11704-025-40672-2 · Cited by 4
Large language models-driven fuzzing: A systematic survey
Wan, Y., Huang, M., Li, X., Nie, Y., Zhen, W., & Zhong, F. (2026) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2026.115126 · Cited by 3
Taherkhani, H., DaghighFarsoodeh, A., Chowdhury, M., Pham, H. V., & Hemmati, H. (2026) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst69053.2026.00039 · Cited by 8
“A central difficulty in LLM-based test generation lies in verifying the correctness of the generated test cases [2], [6]–[8].”
Generate High-Coverage Unit Test Data Using the LLM Tool
Do, N. T. B., & Nguyen, C. Q. (2024) · International Journal of Innovative Technology and Exploring Engineering · doi:10.35940/ijitee.l9996.13121124 · Cited by 3
Model-based test execution from high-level natural language instructions using GPT-4
Azimi, M. Y., & Yılmaz, C. (2025) · Software Quality Journal · doi:10.1007/s11219-025-09712-9 · Cited by 4
WIP: Assessing the Effectiveness of ChatGPT in Preparatory Testing Activities
Haldar, S., Pierce, M., & Capretz, L. F. (2024) · IEEE Frontiers in Education Conference (FIE) · doi:10.1109/fie61694.2024.10893214 · Cited by 9
“In the software testing paradigm, LLM tools have been experimented with for unit test generation [11], test case generation from bug reports [12], GUI testing [13], code understanding [14], and program repair [15], etc. Wang et al. [16] conducted a review of the utilization of LLMs in software…”
Can Test Generation and Program Repair Inform Automated Assessment of Programming Projects?
Gu, R., Rojas, J. M., & Shin, D. (2025) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst62969.2025.10988955 · Cited by 2
“If LLM-generated tests fail to compile due to missing library imports, we manually add them; otherwise, those tests are commented out (discarded) [37].”
SpeedGen: Enhancing Code Efficiency through Large Language Model-Based Performance Optimization
Purschke, N., Kirchner, S., & Knoll, A. (2025) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner64311.2025.00045 · Cited by 4
“Apart from that, large language models can be used for many different related tasks or subcategories, such as automated program repair [17], automated unit test generation [18], automated coding comments generation [19] and assisting the programmer with coding suggestions [20].”
An Empirical Study of Code Clones from Commercial AI Code Generators
Wu, W., Hu, H., Fan, Z., Qiao, Y., Huang, Y., Li, Y., Zheng, Z., & Lyu, M. R.-T. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3729397 · Cited by 11
“Schäfer et al. [50] carefully evaluated the proposed LLM-based test generator to ensure that the achieved effectiveness is not due to data leakage.”
Evaluating the Ability of GPT-4o to Generate Verifiable Specifications in VeriFast
Rego, M., Fan, W., Hu, X., Dod, S., Ni, Z., Xie, D., DiVincenzo, J., & Tan, L. (2025) · 2025 IEEE/ACM Second International Conference on AI Foundation Models and Software Engineering (Forge) · doi:10.1109/forge66646.2025.00035 · Cited by 2
Test Amplification for REST APIs via Single and Multi-agent LLM Systems
Nooyens, R., Bardakci, T., Beyazıt, M., & Demeyer, S. (2025) · Lecture notes in computer science · doi:10.1007/978-3-032-05188-2_11 · Cited by 13
Gao, C., Chen, X., Wang, J., Wang, J., & Yang, G. (2025) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2025.111914 · Cited by 3
Rodríguez, M., Rossi, G., & Fernández, A. (2025) · Communications in computer and information science · doi:10.1007/978-3-032-06336-6_4 · Cited by 3
Does Few-Shot Learning Help LLM Performance in Code Synthesis?
Xu, D., Xie, T., Xia, B., Li, H., Bai, Y., Sun, Y., & Wang, W. (2024) · arXiv · doi:10.48550/arxiv.2412.02906 · Cited by 3
“…code generation (Roziere et al., 2023; Guo et al., 2024; Dubey et al., 2024), test case generation (Vikram et al., 2023; Lemieux et al., 2023; Schäfer et al., 2023), debugger interaction (Islam et al., 2024; Ho et al., 2024), and repository-level generation (Shrivastava et al., 2023; Bui et…”
FeedbackEval: A Benchmark for Evaluating Large Language Models in Feedback-Driven Code Repair Tasks
Dai, D., Liu, M., Li, A., Cao, J., Wang, Y., Wang, C., Peng, X., & Zheng, Z. (2025) · arXiv · doi:10.48550/arxiv.2504.06939 · Cited by 1
“In contrast, CoderEval contains more complex, repository-level tasks with broader context and domain-specific logic, exposing errors such as incorrect API usage or hallucinated method calls.”
Evaluation and Inference of a Proposed, Improved and Efficient W Model for Software Testing
Velan, S. S., Velan, S. S., Rubini, P. E., & Sudhakar, K. (2024) · International Conference on Computing, Communication and Networking Technologies (ICCCNT) · doi:10.1109/icccnt61001.2024.10725640 · Cited by 1
“Researcher Schäfer et. al., [8] have proposed a large-scale based empirical evaluation on measuring the effectiveness of Large Language Models (LLMs) for the automation of unit test case generation and automation.”
BackgroundOnobhayedo, P. A., Igah, C. O., & Okonkwo, A. (2024) · Journal on artificial intelligence · doi:10.32604/jai.2024.058649 · Cited by 2
“…Microsoft-owned GitHub Co-pilot [3], to ChatGPT’s code generation using Generative Pre-Trained Model (GPT), Some researchers have used TESTPILOT [20] for automatic unit tests generation using LLM, etc. Stack Overflow recently reported experiments currently being carried out in many areas and,…”
Microscale search-based algorithm based on time-space transfer for automated test case generation
Hong, Y., Liu, F., Huang, H., Yi, X., Yan, X., & Mai, G. (2025) · Complex & Intelligent Systems · doi:10.1007/s40747-024-01706-7 · Cited by 1
Software testing for peer-to-peer systems: Challenges and the state-of-the-art
Garcia, B. E. R., & Souza, S. R. S. (2025) · Journal of Software Engineering Research and Development · doi:10.5753/jserd.2025.4917 · Cited by 2
Uncovering API-Scope Misalignment in the App-in-App Ecosystem
Che, J., Guo, C., Dong, N., Pei, J., Fan, L., Mi, X., Xie, X., Luo, X., Liu, Z., & Cheng, R. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3728962 · Cited by 2
“With the recent significant advancements in the areas of LLM-based code completion [15, 21, 33, 34] and test case generation [23, 30], we are inspired to devise an LLM-based execution mode generation method to test API snippets with executable contexts, including the following 3 steps. a) Return…”
Integrating AI Tools Into the Continuous Testing Process.
Software Developer Engineer in Test Penn Interactive Miami, U., & Korol, V. (2025) · The American Journal of Engineering And Technology · doi:10.37547/tajet/volume07issue06-23 · Cited by 2
A Tool for Generating Exceptional Behavior Tests With Large Language Models
Zhong, L., Yuan, S., Zhang, J., Liu, Y., Nie, P., Li, J. J., & Gligoric, M. (2025) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3696630.3728608 · Cited by 1
Quality by Prompt: LLM-Powered Transformation of Data Quality Requirements Into Great Expectations
Abughazala, M., Ibiyo, M. O., Muccini, H., & Sharaf, M. (2025) · Lecture notes in computer science · doi:10.1007/978-3-032-04190-6_9 · Cited by 2
On the Energy Footprint of Using a Small Language Model for Unit Test Generation
Durelli, R. S., Endo, A. T., & Durelli, V. H. S. (2025) · Simpósio Brasileiro de Testes de Software Sistemático e Automatizado (SAST) · doi:10.5753/sast.2025.14036 · Cited by 1
“Specifically, given the widespread use of LLMs in various coding-related tasks, it is reasonable to expect that they would be effective in software testing activities, particularly in the generation of unit tests [1, 26].”
ReCompGPT: An NL2NL Framework for Automated Requirements Completeness
Sheng, T., Wang, L., & Liu, H. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3613507 · Cited by 2
“Despite the triumphant advance of LLMs, which have been successfully applied to many tasks in SE, such as code generation [21], automated testing [22], and program repair [23] — spawning an emerging area called LLM4SE [24], there are still few studies and applications of LLMs in requirements…”
LLM-Empowered Scriptless Functional Testing
Hooren, C. V., Ricós, F. P., Bromuri, S., Vos, T. E. J., & Marín, B. (2025) · IEEE International Conference on Software Quality, Reliability and Security (QRS) · doi:10.1109/qrs65678.2025.00012 · Cited by 1
“Their effectiveness, however, varies based on model architecture, training data, task complexity, and especially the quality of the input prompt [37], [38].”
Boosting unit test generation via structure-aware fine-tuning of pre-trained model
Qiu, S., Chen, W., Liu, H., Wang, S., & Huang, H. P. (2025) · Information and Software Technology · doi:10.1016/j.infsof.2025.107948 · Cited by 1
Huang, J. (2025) · International Conference on Intelligent Algorithms for Computational Intelligence Systems (IACIS) · doi:10.1109/iacis65746.2025.11210946 · Cited by 5
“A DASFAA 2024 paper on a “Workload Forecasting Model” combined uncertainty quantification with transfer fine-tuning, enabling zero-shot start-up when moving from AWS to GCP [8].”
LLM4FP: LLM-Based Program Generation for Triggering Floating-Point Inconsistencies Across Compilers
Wang, Y., & Rubio-González, C. (2025) · International Conference for High Performance Computing, Networking, Storage and Analysis (SC) · doi:10.1145/3731599.3767362 · Cited by 4
Zhu, H., & Zhang, H. (2025) · International Conference on Electronic Information Technology (EIT) · doi:10.1109/eit67313.2025.11232178 · Cited by 1
“Schäfer et al. (2023) evaluated the application of LLMs in automated unit test generation with the help of empirical evidence, revealing that they have certain limitations in generating high-quality test cases, especially in terms of code understanding and model stability [3] .”
Lira, W. A. L., Neto, P. D. A. D. S., Avelino, G. A., & Osório, L. F. M. (2025) · Simpósio Brasileiro de Qualidade de Software (SBQS) · doi:10.5753/sbqs.2025.13853 · Cited by 1
“The study by [42] provides an empirical evaluation of the effectiveness of automatically generating unit tests using LLMs.”
Alchemist: LLM-Driven Test Generation using Solidity Mutants and the Scientific Method
Barboni, M., Lampa, F., Morichetta, A., Polini, A., & Zulkoski, E. (2025) · IEEE International Conference on Blockchain and Cryptocurrency (ICBC) · doi:10.1109/icbc64466.2025.11114643 · Cited by 1
“…generation and reduce the effectiveness of direct LLM prompting. c) Code Generation with LLMs : Existing LLM-based test generation typically focuses on improving the quality of generated code by fine-tuning the prompting strategies and providing more thorough code contexts to the model [11], [14].”
What Inputs Drive Effective Large Language Model-Based Unit Test Generation?
Agarwal, S., Nie, P., & Nagappan, M. (2025) · IEEE Software · doi:10.1109/ms.2025.3621625 · Cited by 1
DroneTest-Copilot: LLM-Powered Automated Detection and Repair of Flaws in Drone Autotest Suites
Liang, Z., HU, L. Z., Fan, Q., Yuan, B., Zhang, Q., Zou, D., & Jin, H. (2026) · IEEE Transactions on Network Science and Engineering · doi:10.1109/tnse.2026.3653678 · Cited by 4
“Schäfer et al. [39] proposed TESTPILOT, an LLM-driven tool for JavaScript unit testing, which leverages function signatures, documentation, and adaptive prompting to generate test casesachievinghighstatementandbranchcoverage—validatingLLMs’efficacyinlanguage-specificunittestscenarios.”
From Legal Text to Tech Specs: Generative AI’s Interpretation of Consent in Privacy Law
Kesari, A., Breaux, T. D., Santos, S., Norton, T. B., & Singhal, A. (2025) · International Conference on Artificial Intelligence and Law · doi:10.1145/3769126.3769241 · Cited by 4
“Developers are beginning to use use LLMs to generate and critique requirements [3], create user personas [12, 35], design artifacts [9], and generate code and test cases [26].”
RepoMasterEval: Evaluating Code Completion via Real-World Repositories
Wu, Q., Peng, C., Gao, P., Hu, R., Gan, H., Jiang, B., Tang, J., Deng, Z., Guan, Z., Gao, C., et al. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00304 · Cited by 21
Yang, Y., Zhou, C., Wang, R., Zhang, W., Shen, Y., Shi, X., Ma, T., Gao, C., Wang, Z., Fu, Y., et al. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00293 · Cited by 1
“LLM have emerged as a promising solution for automated test cases generation in software engineering, addressing the challenges of ensuring high coverage and efficiency in complex systems [18].”
On the Evaluation of Large Language Models in Unit Test Evolution (Experience Paper)
None, Zhang, J., Niu, Y., & Zhou, B. (2026) · Proceedings of the ACM on software engineering. · doi:10.1145/3832282 · Cited by 1
“Unit testing plays a fundamental role in ensuring software reliability by validating the behavior of individual program components during development and evolution [40, 47, 60].”
Ragkhitwetsagul, C., Krinke, J., Choetkiertikul, M., Sunetnanta, T. T., & Sarro, F. (2026) · Journal of Systems and Software · doi:10.1016/j.jss.2026.112817 · Cited by 2
Automated test plan generation using large language models
Haldar, S., & Capretz, L. F. (2026) · Software Quality Journal · doi:10.1007/s11219-026-09744-9 · Cited by 3
“LLMs have been applied in other test artifact generation tasks, such as unit test genera - tion (Schäfer et al., 2024) 2024) demonstrated that GPT-3.”
Evaluating AI-supported eliminative argumentation for developing reliable assurance cases
Viger, T., Murphy, L., Diemert, S., Menghi, C., Babikian, A. A., Joyce, J., Sandro, A. D., Anwari, N., Cyffka, E., & Chećhik, M. (2026) · Empirical Software Engineering · doi:10.1007/s10664-025-10799-8 · Cited by 1
Bishop, G., Chakraborty, S., Zhou, H., Dehlinger, J., Deng, L., Lin, J., & Kist, B. (2026) · Automated Software Engineering · doi:10.1007/s10515-026-00617-w · Cited by 2
“…including code generation tools like GitHub Copilot (Ziegler et al. 2022 ), automated test case generation using large language models (LLMs) (Schäfer et al. 2023), equivalent mutant classification using neural networks (Pugh et al. 2025 ), and static detection of software vulnerabilities…”
MapVerse: A Benchmark for Geospatial Question Answering on Diverse Real-World Maps
Bhat, S., Khandelwal, H., Kataria, T., & Gupta, V. (2026) · IEEE Winter Conference on Applications of Computer Vision · doi:10.1109/wacv61042.2026.00788 · Cited by 2
“Yet research and investment still center on high-stakes domains that lend themselves to automation, such as standardized exams, code generation, clinical decision support, and autonomous driving [4, 11, 20, 22, 24, 26, 39, 41, 46, 49, 51, 52].”
Evaluating Large Language Models for Software Testing: A Systematic Review of Metrics and Practices
Perera, V. I. T., & Silva, D. I. D. (2026) · Lecture notes in networks and systems · doi:10.1007/978-3-032-18913-4_27 · Cited by 1
TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenance
Bruches, E. P., Alperovich, V., Baturova, D., Derunets, R., Grebenkin, D., Mkrtchyan, G., Sedukhin, O., Klementev, M., Bondarenko, I., Bushkov, N., et al. (2026) · IEEE International Conference on Software Analysis, Evolution and Reengineering - Companion (SANER-C) · doi:10.1109/saner-c67878.2026.00057 · Cited by 2
“The frameworks and methods like TestART [18], ChatU-niTest [19], already mentioned ChatTester [16] and others [20], [21] use the APR (Automated Program Repair) idea, but the proposed pipelines also contain the repair stage, which can be rule-based, LLM-based, or combined.”
Validating Formal Specifications with LLM-Generated Test Cases
Cunha, A., & Macedo, N. M. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-26204-2_15 · Cited by 1
GEM: A Framework for Strengthening LLM-Generated Unit Tests Using Mutation Feedback
Celik, A., & Mahmoud, Q. H. (2026) · Congresso Ibero-Americano em Engenharia de Software (CIbSE) · doi:10.5753/cibse.2026.42441 · Cited by 1
“Unit testing plays a foundational role in validating functional correctness and supporting long-term maintainability [Sch¨afer et al. 2024], but developers often perceive test creation as tedious and insufficiently rewarded, leading to chronic underin-vestment [Sch¨afer et al. 2024, Straubinger and…”
None, Zhang, J., Zhu, X., & Zhou, B. (2026) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner67736.2026.00013 · Cited by 1
“Following prior work on automated test generation [21], [22], we evaluate HieraTest using seven complementary metrics covering both syntactic correctness and testing effectiveness.”
Real-World Fault Detection for C-Extended Python Projects with Automated Unit Test Generation
Berg, L., Krodinger, L., Lukasczyk, S., Panichella, A., Fraser, G., Vanhoof, W., & Devroey, X. (2026) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst69053.2026.00061 · Cited by 1
“In recent years, research has explored the usage of generative models [37] and large language models (LLMs) for test generation [38], [39], [40], [22], [41], [42], [43], [44], [45], [46], [47], [48], [49], [50].”
How well LLM-based test generation techniques perform with newer LLM versions?
Konstantinou, M., Degiovanni, R., & Papadakis, M. (2026) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst69053.2026.00040 · Cited by 8
Testing with AI Agents: An Empirical Study of Test Generation Frequency, Quality, and Coverage
Yoshimoto, S., FUJITA, S., Horikawa, K., Feitosa, D., Kashiwa, Y., & Iida, H. (2026) · International Conference on Mining Software Repositories (MSR) · doi:10.1145/3793302.3793620 · Cited by 6
Slotkienė, A., & Makaris, L. (2026) · Electronics · doi:10.3390/electronics15163694 · Cited by 1
Gu, S., Zhang, Q., Li, K., Fang, C., Tian, F., Zhu, L., Zhou, J., & Chen, Z. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3844945 · Cited by 70
“This indicates that TestART effectively leverages LLMs’ strengths while mitigating their weaknesses, leading to more effective, reliable, and higher-quality unit tests.”
Generative Artificial Intelligence for the Visualization of Source Code as Comics
Heidrich, D., Schreiber, A., & Theis, S. (2024) · Lecture notes in computer science · doi:10.1007/978-3-031-60114-9_4 · Cited by 3
Examples out of Thin Air: AI-Generated Dynamic Context to Assist Program Comprehension by Example
Mattis, T., Krebs, E., Rinard, M., & Hirschfeld, R. (2024) · International Conference on Art, Science, and Engineering of Programming (<Programming>) · doi:10.1145/3660829.3660845 · Cited by 4
“The TestPilot system [17], for example, uses usage examples from documentation to generate tests.”
Identificação de Smells em Testes Fim-a-Fim Implementados em Cypress
Bicalho, L., Montandon, J. E., & Valente, M. T. (2024) · doi:10.5753/vem.2024.3785 · Cited by 1
Evaluating Spectrum-Based Fault Localization on Deep Learning Libraries
Yan, M., Chen, J., Jiang, T., Jiang, J., & Wang, Z. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3552622 · Cited by 2
“…the variables subscript (e.g., x [: 2] to x ) 2) LLM-Based Approach: Large language models exhibit the capability of understanding both natural language and programming languages [38], [39], [40], [41], which have been widely studied in the field of software engineering [36], [42], [43], [44], [45].”
Test Amplification for REST APIs: Using “Out-of-the-Box” Large Language Models
Bardakci, T., Demeyer, S., & Beyazıt, M. (2025) · IEEE Software · doi:10.1109/ms.2025.3559664 · Cited by 1
“There are at least two recent reports concerning industrial adoption of LLMs for unit test amplification at Meta [9] and GitHub [10].”
Giabbanelli, P. J., Beverley, J. R., Dávid, I., & Tolk, A. (2025) · Winter Simulation Conference · doi:10.1109/wsc68292.2025.11338852 · Cited by 2
“Such avenues have been explored by Schäfer et al. (2024) who generate unit tests with a median statement coverage of above 70% and branch coverage above 52%.”
Braberman, V. A., Bonomo, F., Charalambous, Y., Colonna, J. G., Cordeiro, L. C., & de Freitas, R. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5624902 · Cited by 8
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.6843084 · Cited by 2
Proceedings of the Conference "Lithuanian MSc Research in Informatics and ICT"
Bernatavičienė, J., Dzemyda, G., Kurasova, O., & Žilinskas, J. (2024) · Vilnius University Open Series · doi:10.15388/lmitt.2024
CodeSift: An LLM-Based Reference-Less Framework for Automatic Code Validation
Aggarwal, P., Chatterjee, O., Dai, T., Mohapatra, P., Paulovicks, B. D., Blancett, B., & Magalhaes, A. D. (2024) · IEEE ... International Conference on Cloud Computing · doi:10.1109/cloud62652.2024.00052 · Cited by 7
“These limitations are mitigated by automated test case generation techniques [5], [6], [14]–[17].”
BackgroundMethodMukta, M. S. H., Antu, B. N., Azad, N., Abedeen, I., & Islam, A. K. M. N. (2024) · Software Practice and Experience · doi:10.1002/spe.3381 · Cited by 2
“Figure 2 presents a timely representation of programming language preferences, which is developed from our dataset and also indicates the recent trends in the software industry [57].”
An Empirical Study on the Detection of Test Smells in Test Codes Generated by GitHub Copilot
Alves, V. A., Bezerra, C. I. M., & Machado, I. (2024) · doi:10.5753/cbsoft_estendido.2024.4102
Dondapati, K., Chetlapalli, H., Kodadi, S., Deevi, D. P., Allur, N. S., & Perumal, T. (2025) · Australian Journal of Electrical & Electronics Engineering · doi:10.1080/1448837x.2025.2470575
Mohandas, P., Duraipandian, A., Chaitanya, V. S., Tharun, A. N., Vishnuvardhan, D., & Kumar, D. N. V. (2024) · International Conference on Computing and Intelligent Reality Technologies (ICCIRT) · doi:10.1109/iccirt59484.2024.10921974
Automated Test Generation: Taxonomy and Tool Applications
Enoiu, E. P., Minhas, N. M., Felderer, M., & Afzal, W. (2025) · Lecture notes in computer science · doi:10.1007/978-3-031-87054-5_3 · Cited by 1
Testing Technologies for Intelligent Vehicles: A Review
Ren, F., Hu, Q., Wu, J., Zou, Y., Luo, X., Yan, J. H., Wei, Y., & Li, G. (2025) · Lecture notes in electrical engineering · doi:10.1007/978-981-96-3965-6_33
Wambua, A. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5202606
Sokol, O. (2025) · Technologies and Engineering · doi:10.30857/2786-5371.2025.1.3 · Cited by 2
Pizarro, E., Azanza, M., & Lamancha, B. P. (2025) · Congresso Ibero-Americano em Engenharia de Software (CIbSE) · doi:10.5753/cibse.2025.35294
Priyadarshana, Y. H. P. P., Liang, Z., & Piumarta, I. (2025) · SN Computer Science · doi:10.1007/s42979-025-04144-5
“5-turbo-0301 for ChatGPT and gpt-4–0314 for GPT-4 [51].”
Generating Robot Framework Code with LLM Models: A RAG-Based Approach
Sezgin, A., Özkan, G., & Coşgun, E. (2025) · Lecture notes in networks and systems · doi:10.1007/978-3-031-97992-7_65 · Cited by 1
Research on Optimization of Automated Testing for Training Management Platforms Based on QTP
Yang, Y. (2025) · Intelligent & Human Futures · doi:10.63808/ihf.v1i2.78
MASON - A Multi-Agent LLM Framework for No-Code Development
Palayamkot, M. R., & Karim, K. (2025) · Proceedings of the AAAI Symposium Series · doi:10.1609/aaaiss.v6i1.36068
“Large Language Models (LLMs) have demonstrated remarkable success in automating programming tasks (Lin, Kim et al. 2024; Touvron et al. 2023; Shen et al. 2023; Xie et al. 2023; Sch¨afer et al. 2023; AlOmar et al. 2024; Ma et al. 2024b,c).”
From Prompts to Findings: Detecting Command Injection in Python Packages at ScalePreprint
Chen, J., Wang, Y., & Wang, Q. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5442371
Exploring the Use of GenAI in Automating Software Testing
Almohsen, K., Albalooshi, F. A., & Al-Ammari, J. (2025) · IEEE International Conference on Computing and Machine Intelligence (ICMI) · doi:10.1109/icmi65310.2025.11139839 · Cited by 3
“Furthermore, the review identified three distinct types of articles: review papers [1], [10], [11], [14], [16], articles exploring the application of GenAI in generating test cases [2], [3], [4], [7], [18], [22], [23], [26], and articles focused on creating generators for test cases [25].”
TCG: an approach to improving test-driven development by exploiting use case specifications
Trinh, T.-B., & Truong, N.-T. (2025) · International Journal of Systems Assurance Engineering and Management · doi:10.1007/s13198-025-03025-7 · Cited by 1
“To address this issue, several automated test case generation methods have been proposed to save time, cost, and effort while providing more optimal and high-coverage test cases (Alagarsamy et al. 2023; Alra-washdeh et al. 2019 ; Schafer et al. 2024 ; Takerngsaksiri et al. 2024 ).”
Automated Test Case Generation Using Natural Language Processing
Devi, M. R. A., & Jabbar, P. A. (2025) · Lecture notes in networks and systems · doi:10.1007/978-981-96-8901-9_12 · Cited by 1
How Efficient is Your Clone? Evaluating LLM Capabilities for Runtime and MemoryAware Code SelectionPreprint
RAZZAQ, A., Ramaswamy, P., Akbar, M. A., & Rao, M. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5679011
Exploring test smells across programming languages: A systematic mapping study
Silva, P., Bezerra, C. I. M., Machado, I., & Ribeiro, M. (2026) · Journal of Systems and Software · doi:10.1016/j.jss.2026.113065
Syntest-ACR: Automated Crash Reproduction for Javascript
Oliver, P., Dietrich, J. B., Anslow, C., & Homer, M. (2025) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme64153.2025.00047
“Some of the most recent developments in ACR and bug localisation have been in the use of Large Language Models (LLMs) to generate test cases [5], [20]–[23].”
Automated Update of Android Deprecated API Usages With Large Language Models
Mahmud, T., Duan, B., Che, M., Yasmin, A., Ngu, A. H. H., & Yang, G. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3627897 · Cited by 9
“5 can achieve high code coverage in JavaScript unit test generation through zero-shot prompting [61].”
LLMUpdater: Automatic comment synchronization via edit model guided LLMs
Yang, H., Xie, Q., Cai, S., Wang, Z., Kuang, L., & Xia, Y. (2025) · Empirical Software Engineering · doi:10.1007/s10664-025-10752-9
“…; Du et al. 2024), comment generation (Geng et al. 2024; Ahmed et al. 2024; Arakelyan et al. 2023 ), test-related generation (Zhang et al. 2024; Schäfer et al. 2023 ; Xie et al. 2023 ; Yuan et al. 2023 ), program repair (Cao et al. 2023 ; Sobania et al. 2023 ; Xia and Zhang 2023 ; Peng et al.…”
UAgent: Adversarial Co-evolution for Targeted Bug Revelation in Unit Testing
Fu, Y., & Zhang, Y. (2025) · doi:10.1145/3733821.3763027 · Cited by 2
“While achieving state-of-the-art oracle generation for weakly-typed languages like JavaScript [7, 20, 24], these models face significant challenges with strongly-typed languages such as Java due to strict type constraints and complex execution semantics.”
An LLM-powered Natural-to-Robotic Language Translation Framework with Correctness Guarantees
Chen, Z. T., Nie, Z., Wan, S., Li, J., Cheng, Y., & Zhao, S. (2025) · International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn64981.2025.11227927 · Cited by 2
“High-level language generation [13], [25], [26] are prone to programming errors due to the inconsistency of LLMs, significantly limiting the effectiveness due to the lack of correctness guarantees [12].”
An Evaluation Framework for Software Unit Tests Generated by Large Language Models
Nguyen, S. T., Bharath, S., & Homayouni, H. (2025) · IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW) · doi:10.1109/issrew67781.2025.00081
“Similarly, Schafer et al. [14] evaluated unit tests generated by GPT-3.”
Automated Test Case Generation Using Machine Learning And Natural Language Processing
R, A. D. M., & P., A. (2025) · doi:10.1109/cises66934.2025.11264985
“Max Schäfer et al. created TESTPILOT, a technique to adaptive unit test generation that leverages a large language model [15].”
MAGISTER: LLM-Based Test Generation with Role-Specialized Agents
Ahammad, A., Bajta, M. E., & Radgui, M. (2025) · International Conference on Intelligent Systems: Theories and Applications · doi:10.1109/sita67914.2025.11273637
“Automated software testing is one of the key elements in the Software Development Life Cycle (SDLC), as it ensures software correctness and quality [8], especially in tasks like unit testing, which target specific units of code, such as functions, and verify their correctness.”
A Legal-BERT Validated RAG Framework for Trustworthy AI-Assisted Legal Reasoning
Kumar, P., & Dhir, V. (2025) · Asian Conference on Innovation in Technology (ASIANCON) · doi:10.1109/asiancon66527.2025.11280747
“After preprocessing, the structural document data is summarized using the BART, a transformer-based model that is known to generate coherent summaries [12].”
Influential
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.