arrow
Return

A mixed-method in-depth study of test-specific refactorings

delete2026-08-04
delete0
PRE
AI
V
Victor Guerra Veloso *
N
Nikolaos Tsantalis
T
Tse-Hsun Peter Chen
DOI:10.1007/s10664-026-10909-0delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Unlike traditional refactorings, research on test-specific refactoring is limited. This paper presents a comprehensive catalogue of 57 test-specific refactoring types, out of which only 33 were previously documented in the literature. We have identified and classified those refactorings using a mixed-method approach grounded on three sources of data: a) Existing datasets of test-modifying commits, b) Monitoring of latest contributions to popular GitHub repositories, and c) Stack Overflow discussions. Our findings reveal that tools have limited support for test-specific refactorings. And, unlike the existing literature that mainly associates refactoring activity in tests with test smell resolution, test refactoring is driven by various motivations, such as improving test understandability, accommodating changes in production code, and test framework migration. Finally, we provide actionable implications for researchers and tool builders.
Keywords:
Refactoring
Software testing
Software migration
Test smells
Mocking
Software evolution
Mixed-method research

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
1.9K
Citations:
5.3K

Organization

C
Concordia University
Scholars:
965
Papers: 547
Citations: 125