Skip to main content
QUICK REVIEW

[Paper Review] A survey on test practitioners' awareness of test smells

Nildo Silva, Larissa Rocha|arXiv (Cornell University)|Mar 12, 2020
Software Engineering ResearchComputer Science18 references14 citations
TL;DR

This study investigates test practitioners' unintentional introduction of test smells through a survey of 60 professionals across Brazilian companies. It reveals that experienced developers frequently use anti-patterns leading to test smells, even when following standardized practices, and that professional experience does not significantly reduce smell introduction.

ABSTRACT

Developing test code may be a time-consuming task that usually requires much effort and cost, especially when it is done manually. Besides, during this process, developers and testers are likely to adopt bad design choices, which may lead to the introduction of the so-called test smells in test code. Test smells are bad solutions to either implement or design test code. As the test code with test smells increases in size, these tests might become more complex, and as a consequence, much harder to understand and evolve correctly. Therefore, test smells may have a negative impact on the quality and maintenance of test code and may also harm the whole software testing activities. In this context, this study aims to understand whether test professionals non-intentionally insert test smells. We carried out an expert survey to analyze the usage frequency of a set of test smells. Sixty professionals from different companies participated in the survey. We selected 14 widely studied smells from the literature, which are also implemented in existing test smell detection tools. The yielded results indicate that experienced professionals introduce test smells during their daily programming tasks, even when they are using standardized practices from their companies, and not only for their personal assumptions. Another relevant evidence was that developers' professional experience can not be considered as a root-cause for the insertion of test smells in test code.

Motivation & Objective

  • To understand whether test practitioners unintentionally introduce test smells during test development.
  • To examine whether professional experience reduces the likelihood of introducing test smells.
  • To identify common development practices that lead to test smell insertion in real-world testing workflows.
  • To assess the frequency and prevalence of specific test smell-related practices among industry professionals.
  • To inform test quality improvement by identifying root causes of test smell introduction beyond individual expertise.

Proposed method

  • Conducted an expert survey with 60 test practitioners from diverse Brazilian companies.
  • Selected 14 widely studied test smells from the literature, commonly implemented in test smell detection tools.
  • Presented test smells as development practices in the survey to avoid bias and improve comprehension.
  • Used a pilot survey with four testers to refine questions and reduce ambiguity.
  • Applied peer-reviewed coding for open-ended responses to ensure construct validity.
  • Translated survey from Portuguese to English and reviewed by all authors to maintain consistency.

Experimental results

Research questions

  • RQ1RQ1: Do professionals use test case design practices that might lead to test smell insertion?
  • RQ2RQ2: Does professional experience interfere with test smell insertion?
  • RQ3RQ3: Which practices in professionals’ daily activities lead to test smell insertion?
  • RQ4RQ4: Are certain test smells more frequently associated with standardized or habitual development practices?

Key findings

  • Experienced professionals frequently introduce test smells, even when following company-standardized practices.
  • Professional experience does not significantly reduce the frequency of test smell introduction, challenging the assumption that expertise eliminates bad practices.
  • All 14 selected test smells were reported as being used by at least some professionals, indicating widespread awareness and adoption of problematic patterns.
  • The most common causes of test smells were identified as habitual coding practices and adherence to organizational standards, not personal assumptions.
  • Test smells such as 'Poorly Written Test', 'Conditional Logic in Test', and 'Generic Test Data' were frequently cited as common practices.
  • The study found no significant correlation between experience level and reduced smell insertion, suggesting that training or tooling may be needed beyond experience alone.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.