Does refactoring break tests and to what extent?
Informazioni aggiuntive
Tipo
Contributo in atti di convegno
Anno
2021
Lingua
Inglese
Sommario
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.
Titolo atti di convegno
2021 IEEE International Conference on Software Maintenance and Evolution (ICSME), Luxembourg, 2021
Pagine (o numero dell’articolo)
171-182
Diffusione
Licenza
Licenza non definita
Visibilità
Pubblico
Status open access
Green