mlsanityData to 14 Oct 2026

Testing Refactoring Engine via Historical Bug Report driven LLM

arXiv 2501.09879 ↗First posted 16 Jan 2025cs.SEcited by 1

Not on the map. Why?

Abstract (arXiv)

Refactoring is the process of restructuring existing code without changing its external behavior while improving its internal structure. Refactoring engines are integral components of modern Integrated Development Environments (IDEs) and can automate or semi-automate this process to enhance code readability, reduce complexity, and improve the maintainability of software products. Similar to traditional software systems such as compilers, refactoring engines may also contain bugs that can lead to unexpected behaviors. In this paper, we propose a novel approach called RETESTER, a LLM-based framework for automated refactoring engine testing. Specifically, by using input program structure templates extracted from historical bug reports and input program characteristics that are error-prone, we design chain-of-thought (CoT) prompts to perform refactoring-preserving transformations. The generated variants are then tested on the latest version of refactoring engines using differential testing. We evaluate RETESTER on two most popular modern refactoring engines (i.e., ECLIPSE, and INTELLIJ IDEA). It successfully revealed 18 new bugs in the latest version of those refactoring engines. By the time we submit our paper, seven of them were confirmed by their developers, and three were fixed.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). First posted on arXiv 16 Jan 2025.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Automated Unit Test Refactoring
  2. 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoring
  3. 2025Evaluating the Effectiveness of Small Language Models in Detecting Refactoring Bugs
  4. 2026REFINE: A Multi-Agent LLM Approach for Evidence-Guided Code Refactoring
  5. 2024An Empirical Study on the Code Refactoring Capability of Large Language Models
  6. 2025RefAgent: A Multi-agent LLM-based Framework for Automatic Software Refactoring
  7. 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaboration
  8. 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills