arrow
Return

TestCaseMig: LLM-Driven Test Case Migration for Evolving Codebases

delete2026-01-01
delete0
PRE
AI
W
Wuhe Axi
李
李欣 (Xin Li)
J
Jigang Xie
X
X. Li *
H
Haijun Wang
DOI:10.1007/978-3-032-00828-2_31delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
As software systems evolve, test cases must adapt to code changes to remain valid and effective. Traditional test migration approaches, including symbolic execution and diff-based heuristics, often require significant manual effort and struggle to handle complex behavioral changes. Recent advances in large language models (LLMs) offer new opportunities for context-aware and automated test adaptation. However, existing LLM-based approaches are not well-suited for test case migration under evolving code, as they typically lack explicit modeling of code changes and original test context. In this paper, we present TestCaseMig, a framework that integrates LLMs with static analysis to migrate existing test cases in response to code modifications. TestCaseMig constructs change-sensitive, context-rich prompts and employs a multi-round, feedback-driven generation process with validation and coverage analysis to ensure the correctness, completeness, and adaptability of migrated test cases.
Keywords:
Test case migration
Large language models
Static analysis
Software evolution
Automated testing

Journal

E
ENGINEERING OF COMPLEX COMPUTER SYSTEMS, ICECCS 2025
IF:
0
Papers:
26
Citations:
0

Organization

X
xi'an jiaotong university
Scholars:
9.3W
Papers: 6.7W
Citations: 75
Cited Papers

Cited Papers

A Survey on Regression Test-Case Prioritization
err2019-01-01
err0
PREAI
errYiling Lou; Junjie Chen; Lingming Zhang; Dan Hao
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Soot
err2010-01-01
err0
PREAI
errRaja Vallée-Rai; Phong Co; Etienne Gagnon; Laurie Hendren; Patrick Lam; Vijay Sundaresan
errShare
errSave
Automatic test case evolution
err2014-04-21
err0
PREAI
errMehdi Mirzaaghaei; Fabrizio Pastore; Mauro Pezzè
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
ReAssert
err2011-05-21
err0
PREAI
errBrett Daniel; Danny Dig; Tihomir Gvero; Vilas Jagannath; Johnston Jiaa; Damion Mitchell; Jurand Nogiec; Shin Hwei Tan; Darko Marinov
errShare
errSave
no more