On the Evaluation of Large Language Models in Unit Test Evolution (Experience Paper)

Large language models (LLMs) have recently shown promising potential in automating unit test evolution for evolving software systems. However, the effectiveness of LLMs in unit test evolution remains insufficiently understood, particularly with respect to prompt design choices, in-context learning (ICL) strategies, and different types of test evolution. In this paper, we present the first comprehensive empirical study to evaluate LLMs for unit test evolution. We systematically assess nine open-source code LLMs (3B to 34B parameters) and three state-of-the-art commercial models across diverse prompt designs, ICL strategies, and representative test evolution frameworks. To support robust and execution-based evaluation, we construct a new benchmark consisting of 530 real-world focal method–test co-evolution instances collected from seven actively maintained open-source projects. Our evaluation employs a suite of compilation, execution, and coverage-based metrics. Extensive experimental results reveal that prompt design and ICL methods significantly impact LLM effectiveness. Furthermore, the optimal configurations of these strategies vary substantially across different LLMs and evolution types. Based on our findings, we derive actionable insights to guide future research and practical adoption of LLM-based techniques for unit test evolution.

Link
https://www.semanticscholar.org/paper/ef66d0b69eab97133ef51372279c68221383c06f
Found by
Semantic Scholar
Authors
Wei-Chang Liu, Jun-Wei Zhang, Yu-Qing Niu, Bo Zhou, None, Junwei Zhang, Yuqing Niu
Organizations
Zhejiang University, Singapore Management University
Categories
benchmark, evaluation
Published
2026-10-01
Last seen by the radar
2026-10-03
Citations
0
Influential citations
0
Radar score
35.50 / 100 (how it is scored)
Why it scored so
Also found via OpenAlex; Matched: benchmark, evaluat; Primary record: Semantic Scholar
Related links
https://doi.org/10.1145/3832282
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar