For Testers Only

When a production class contains methods that are only used by test methods, these methods either (1) are not needed and can be removed, or (2) are only needed to set up a fixture for testing.

Reference

A. van Deursen, L. Moonen, A. Bergh, G. Kok, “Refactoring Test Code”, Technical Report, CWI, 2001.


Test Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.