We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Computer Science & Information Technology/REACCEPT: Automated Co-evolution of Production and Test Code Based on Dynamic Validation and Large Language Models
PeriodicalsComputer Science & Information Technology

REACCEPT: Automated Co-evolution of Production and Test Code Based on Dynamic Validation and Large Language Models

Checking your access to this record.

Abstract & Overview

Synchronizing production and test code, known as PT co-evolution, is critical for software quality. Given the significant manual effort involved, researchers have tried automating PT co-evolution using predefined heuristics and machine learning models. However, existing solutions are still incomplete. Most approaches only detect and flag obsolete test cases, leaving developers to manually update them. Meanwhile, existing solutions may suffer from low accuracy, especially when applied to real-world software projects. In this paper, we propose ReAccept, a novel approach leveraging large language models (LLMs), retrieval-augmented generation (RAG), and dynamic validation to fully automate PT co-evolution with high accuracy. ReAccept employs an experience-guided approach to generate prompt templates for the identification and subsequent update processes. After updating a test case, ReAccept performs dynamic validation by checking syntax, verifying semantics, and assessing test coverage. If the validation fails, ReAccept leverages the error messages to iteratively refine the patch. To evaluate ReAccept’s effectiveness, we conducted extensive experiments with a dataset of 537 Java projects and compared ReAccept’s performance with several state-of-the-art methods. The evaluation results show that ReAccept achieved an update accuracy of 60.16% on the correctly identified obsolete test code, surpassing the state-of-the-art technique CEPROT by 90%. These findings demonstrate that ReAccept can effectively maintain test code, improve overall software quality, and significantly reduce maintenance effort.

Cite this record

Jianlei Chi, Xiaotian Wang, Yuhan Huang, Lechen Yu, Di Cui, Sun Jian-guo, et al. (2025). REACCEPT: Automated Co-evolution of Production and Test Code Based on Dynamic Validation and Large Language Models. Proceedings of the ACM on software engineering., 2(ISSTA), 1234–1256. https://doi.org/10.1145/3728930

Copy in another style

Chi, J., Wang, X., Huang, Y., Yu, L., Cui, D., Jian-guo, S., & Sun, J. (2025). REACCEPT: Automated Co-evolution of Production and Test Code Based on Dynamic Validation and Large Language Models. Proceedings of the ACM on software engineering., 2(ISSTA), 1234–1256. https://doi.org/10.1145/3728930
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.