For Testers Only
Definition:
This smell arises when a production class contains methods only used by test methods. This kind of production classes should be removed, since it does not provide functionalities used by other classes in the system. From the testing side, this smell involves an extra effort needed in order to comprehend and modify as assertions.
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring
An exploratory study of the relationship between software test smells and fault-proneness
Enhancing developers’ awareness on test suites’ quality with test smell summaries
How are test smells treated in the wild? A tale of two empirical studies
On the diffusion of test smells in automatically generated test code: an empirical study
On the interplay between software testing and evolution and its effect on program comprehension
Scented since the beginning: On the diffuseness of test smells in automatically generated test code
TestQ: Exploring Structural and Maintenance Characteristics of Unit Test Suites