Print Statement
Definition:
Print statements in unit tests are redundant as unit tests are executed as part of an automated script and do not affect the failing or passing of test cases. Furthermore, they can increase execution time if the developer calls a long-running method from within the print method (i.e., as a parameter).
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring
Automatic Identification of High-Impact Bug Report by Product and Test Code Quality
On the diffusion of test smells and their relationship with test code quality of Java projects
On the test smells detection: an empirical study on the jnose test accuracy
The secret life of test smells-an empirical study on test smell evolution and maintenance