Test Smells Catalog Logo

Test Smell Categories

  • Code related
    • Code duplication
    • Complex - Hard to understand
    • In association with production code
      • Behavior Sensitivity
      • Changing Implementation To Make Tests Possible
      • Code Pollution
      • Code Run Only By Tests
      • Context Logic In Production Code
      • Equality Pollution
      • Fire And Forget
      • For Testers Only
      • Hooks Everywhere
      • Indecent Exposure
      • Interface Sensitivity
      • Mixing Production And Test Code
      • Multiple Points Of Failure
      • Overly Elaborate Test Code
      • Overspecification
      • Overspecified Software
      • Overspecified Tests
      • Plate Spinning
      • Production Logic In Test
      • Test Dependency In Production
      • Test Hook
      • Test Logic In Production Code
      • Test Tautology
      • Tests Cluttered With Business Logic
      • Tests Require Too Much Intimate Knowledge Of The Code To Run
      • The Telltale Heart
      • The Ugly Mirror
      • Trying To Test The Untestable
      • Ui Tests Should Not Expose Interactions With Web Elements
      • Well, My Setup Works
    • Mock and stub related
    • Violating coding best practices
  • Dependencies
  • Design related
  • Issues in test steps
  • Test execution - behavior
  • Test semantic - logic

Miscellanous

  • Easy Lab
  • How to contribute
  • How to cite this work
Test Smells Catalog
  • Code related
  • In association with production code
  • For Testers Only
  • View page source

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

  • A survey on test practitioners’ awareness of test smells

  • An empirical analysis of the distribution of unit test smells and their impact on software maintenance

  • An exploratory study of the relationship between software test smells and fault-proneness

  • Are test smells really harmful? An empirical study

  • Automatic generation of smell-free unit tests

  • Categorising Test Smells

  • 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

  • Refactoring Test Code

  • Scented since the beginning: On the diffuseness of test smells in automatically generated test code

  • Test Smell Detection Tools: A Systematic Mapping Study

  • TestQ: Exploring Structural and Maintenance Characteristics of Unit Test Suites

  • xUnit test patterns: Refactoring test code

Previous Next

© Copyright 2024, EASY.

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