Skip to main navigation Skip to search Skip to main content

TestCaseMig: LLM-Driven Test Case Migration for Evolving Codebases

  • Xi'an Jiaotong University
  • Ltd.
  • China Unicom Western Innovation Research Institute

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

Abstract

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.

Original languageEnglish
Title of host publicationEngineering of Complex Computer Systems - 29th International Conference, ICECCS 2025, Proceedings
EditorsYuan Zhou, Zuohua Ding, Sin G. Teo, Xiaofei Xie, Yang Liu
PublisherSpringer Science and Business Media Deutschland GmbH
Pages509-514
Number of pages6
ISBN (Print)9783032008275
DOIs
StatePublished - 2026
Event29th International Conference on Engineering of Complex Computer Systems, ICECCS 2025 - Hangzhou, China
Duration: 2 Jul 2025 → 4 Jul 2025

Publication series

NameLecture Notes in Computer Science
Volume15746 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference29th International Conference on Engineering of Complex Computer Systems, ICECCS 2025
Country/TerritoryChina
CityHangzhou
Period2/07/25 → 4/07/25

Keywords

  • Automated testing
  • Large language models
  • Software evolution
  • Static analysis
  • Test case migration

Fingerprint

Dive into the research topics of 'TestCaseMig: LLM-Driven Test Case Migration for Evolving Codebases'. Together they form a unique fingerprint.

Cite this