A proposal and assessment of an improved heuristic for the Eager Test smell detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tran, Huynh Khanh Vi, Ali, Nauman bin, Unterkalmsteiner, Michael, Börstler, Jürgen
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909680978100224
author Tran, Huynh Khanh Vi
Ali, Nauman bin
Unterkalmsteiner, Michael
Börstler, Jürgen
author_facet Tran, Huynh Khanh Vi
Ali, Nauman bin
Unterkalmsteiner, Michael
Börstler, Jürgen
contents Context: The evidence for the prevalence of test smells at the unit testing level has relied on the accuracy of detection tools, which have seen intense research in the last two decades. The Eager Test smell, one of the most prevalent, is often identified using simplified detection rules that practitioners find inadequate. Objective: We aim to improve the rules for detecting the Eager Test smell. Method: We reviewed the literature on test smells to analyze the definitions and detection rules of the Eager Test smell. We proposed a novel, unambiguous definition of the test smell and a heuristic to address the limitations of the existing rules. We evaluated our heuristic against existing detection rules by manually applying it to 300 unit test cases in Java. Results: Our review identified 56 relevant studies. We found that inadequate interpretations of original definitions of the Eager Test smell led to imprecise detection rules, resulting in a high level of disagreement in detection outcomes. Also, our heuristic detected patterns of eager and non-eager tests that existing rules missed. Conclusion: Our heuristic captures the essence of the Eager Test smell more precisely; hence, it may address practitioners' concerns regarding the adequacy of existing detection rules.
format Preprint
id arxiv_https___arxiv_org_abs_2507_06354
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A proposal and assessment of an improved heuristic for the Eager Test smell detection
Tran, Huynh Khanh Vi
Ali, Nauman bin
Unterkalmsteiner, Michael
Börstler, Jürgen
Software Engineering
Context: The evidence for the prevalence of test smells at the unit testing level has relied on the accuracy of detection tools, which have seen intense research in the last two decades. The Eager Test smell, one of the most prevalent, is often identified using simplified detection rules that practitioners find inadequate. Objective: We aim to improve the rules for detecting the Eager Test smell. Method: We reviewed the literature on test smells to analyze the definitions and detection rules of the Eager Test smell. We proposed a novel, unambiguous definition of the test smell and a heuristic to address the limitations of the existing rules. We evaluated our heuristic against existing detection rules by manually applying it to 300 unit test cases in Java. Results: Our review identified 56 relevant studies. We found that inadequate interpretations of original definitions of the Eager Test smell led to imprecise detection rules, resulting in a high level of disagreement in detection outcomes. Also, our heuristic detected patterns of eager and non-eager tests that existing rules missed. Conclusion: Our heuristic captures the essence of the Eager Test smell more precisely; hence, it may address practitioners' concerns regarding the adequacy of existing detection rules.
title A proposal and assessment of an improved heuristic for the Eager Test smell detection
topic Software Engineering
url https://arxiv.org/abs/2507.06354