Refactoring Test Smells: A Perspective from Open-Source Developers
Refactoring Test Smells: A Perspective from Open-Source Developers
Test smells are symptoms in the test code that indicate possible design or implementation problems, and their presence, along with their prejudice for quality assurance, has already been demonstrated. This study aims to examine proposals for refactoring unit test smells, concerning their acceptance by open-source test developers.
We conducted it in two parts:
A survey that presented developers with smelly test code and refactored options to assess their preference and motivation;
The submission of 40 pull requests to open-source projects to assess the developers' acceptance of test smell refactorings.