• Home
  • Search
  • Does Refactoring Break Tests and to What Extent?
  • Cite Icon8
  • https://doi.org/10.1109/icsme52107.2021.00022Copy DOI Icon

Does Refactoring Break Tests and to What Extent?

  • Sep 1, 2021
  • Yutaro Kashiwa +6 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Refactoring as a process is aimed at improving the quality of a software system while preserving its external behavior. In practice, refactoring comes in the form of many specific and diverse refactoring operations, which have different scopes and thus a different potential impact on both the production and the test code. We present a large-scale quantitative study complemented by a qualitative analysis involving 615,196 test cases to understand how and to what extent different refactoring operations impact a system's test suites. Our findings show that while the vast majority of refactoring operations do not or very seldom induce test breaks, some specific refactoring types (e.g., “RENAME Attribute” and “RENAME Class”) have a higher chance of breaking test suites. Meanwhile, “ADD Parameter” and “CHANGE Return Type” refactoring operations often require additional lines of changes to fix the test suite they break. While some modern IDEs provide features to automatically apply these two types of refactoring operations, they are not always able to avoid test breaks, thus demanding extra human efforts.

Similar Papers
  • PDF
  • Research Article
  • Citations7

Genetic Algorithm for Test Suite Optimization: An Experimental Investigation of Different Selection Methods

  • Apr 10, 2021
  • Turkish Journal of Computer and Mathematics Education (TURCOMAT)
  • Chetan J Shingadiya Et.Al
  • Conference Article
  • Citations23

PYREF: Refactoring Detection in Python Projects

  • Sep 01, 2021
  • Hassan Atwi +7
  • Research Article
  • Citations23

Scripted GUI testing of Android open-source apps: evolution of test code and fragility causes

  • May 18, 2019
  • Empirical Software Engineering
  • Riccardo Coppola +3
  • Research Article
  • Citations1

Understanding and Reusing Test Suites Across Database Systems

  • Dec 18, 2024
  • Proceedings of the ACM on Management of Data
  • Suyang Zhong +1
  • Research Article
  • Citations1

Intelligent evaluation of test suites for developing efficient and reliable software

  • Dec 03, 2019
  • International Journal of Parallel, Emergent and Distributed Systems
  • Masoud Mohammadian +1
  • Conference Article
  • Citations2

Ukwikora: continuous inspection for keyword-driven testing

  • Jul 10, 2019
  • Renaud Rwemalika +4
  • PDF
  • Research Article
  • Citations5

REDUNET: reducing test suites by integrating set cover and network-based optimization

  • Nov 02, 2020
  • Applied Network Science
  • Misael Mongiovì +2
  • Front Matter
  • Citations1

Guest Editorial: Special Section from the 11th International Conference on Quality Software (QSIC 2011)

  • Oct 02, 2012
  • Information and Software Technology
  • Robert M Hierons +1
  • Conference Article
  • Citations7

On the Fly Test Suite Optimization with FuzzyOptimizer

  • Dec 01, 2013
  • Aftab Ali Haider +2
  • Research Article
  • Citations16

Mutation-oriented test data augmentation for GUI software fault localization

  • Jul 24, 2013
  • Information and Software Technology
  • Zhongxing Yu +2
  • Research Article
  • Citations9

A Taxonomy of Information Attributes for Test Case Prioritisation: Applicability, Machine Learning

  • Jan 31, 2023
  • ACM Transactions on Software Engineering and Methodology
  • Aurora Ramírez +2
  • Conference Article
  • Citations4

The Influence of Test Suite Properties on Automated Grading of Programming Exercises

  • Nov 01, 2020
  • Benjamin S Clegg +2
  • Conference Article
  • Citations4

On factors that impact the relationship between code coverage and test suite effectiveness: a survey

  • Apr 01, 2023
  • Maryam Barani +2
  • Conference Article
  • Citations23

Reducing the Cost of Regression Testing by Identifying Irreplaceable Test Cases

  • Aug 01, 2012
  • Chu-Ti Lin +3
  • Conference Article
  • Citations10

Mutation testing as a safety net for test code refactoring

  • May 25, 2015
  • Ali Parsai +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.