Test Smells Catalog Logo

Test Smell Categories

  • Code related
  • Dependencies
  • Design related
  • Issues in test steps
  • Test execution - behavior
    • Other test execution - behavior
      • Abnormal Utf-Use
      • Chatty Logging
      • Frequent Debugging
      • Interactive Test
      • Manual Assertions
      • Manual Event Injection
      • Manual Fixture Setup
      • Manual Intervention
      • Manual Result Verification
      • Print Statement
      • Redundant Print
      • Requires Supervision
      • The Loudmouth
      • Transcripting Test
      • Trying To Use Ui Automation To Replace Manual Testing
      • Unnecessary Navigation
    • Performance
  • Test semantic - logic

Miscellanous

  • Easy Lab
  • How to contribute
  • How to cite this work
Test Smells Catalog
  • Test execution - behavior
  • Other test execution - behavior
  • Print Statement
  • View page source

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 influence of Test Smells on Test Coverage

  • 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

Previous Next

© Copyright 2024, EASY.

Built with Sphinx using a theme provided by Read the Docs.