Javascript must be enabled to continue!
Identifying and Addressing Test Smells in JavaScript: A Developer-Centric Study
View through CrossRef
Test smells are poor practices in test code that can compromise maintainability, reliability, and clarity. While the concept has been widely studied in languages such as Java and Python, research on test smells in JavaScript remains limited—despite its prominence in modern development. To address this gap, we conducted a focus group study with JavaScript developers of varying experience levels to explore their perceptions of seven test smells. These smells—Anonymous Test, Comments Only Test, Overcommented Test, General Fixture, Test Without Description, Transcripting Test, and Sensitive Equality—are particularly relevant to the JavaScript ecosystem and had not been systematically examined in this context prior to our study. We applied thematic analysis to transcribed discussions, uncovering developers’ concerns, recognition patterns, and proposed mitigation strategies. Our results show that experience level strongly influences the ability to detect and refactor test smells, with junior developers often struggling to identify more subtle patterns. To the best of our knowledge, this is the first study to investigate JavaScript developers’ perceptions of test smells using a qualitative approach. Our findings reveal key challenges, offer practical insights for test improvement, and support the development of better training and tooling for JavaScript test quality.
Sociedade Brasileira de Computação
Title: Identifying and Addressing Test Smells in JavaScript: A Developer-Centric Study
Description:
Test smells are poor practices in test code that can compromise maintainability, reliability, and clarity.
While the concept has been widely studied in languages such as Java and Python, research on test smells in JavaScript remains limited—despite its prominence in modern development.
To address this gap, we conducted a focus group study with JavaScript developers of varying experience levels to explore their perceptions of seven test smells.
These smells—Anonymous Test, Comments Only Test, Overcommented Test, General Fixture, Test Without Description, Transcripting Test, and Sensitive Equality—are particularly relevant to the JavaScript ecosystem and had not been systematically examined in this context prior to our study.
We applied thematic analysis to transcribed discussions, uncovering developers’ concerns, recognition patterns, and proposed mitigation strategies.
Our results show that experience level strongly influences the ability to detect and refactor test smells, with junior developers often struggling to identify more subtle patterns.
To the best of our knowledge, this is the first study to investigate JavaScript developers’ perceptions of test smells using a qualitative approach.
Our findings reveal key challenges, offer practical insights for test improvement, and support the development of better training and tooling for JavaScript test quality.
Related Results
Software Metric Based Impact Analysis of Code Smells ‐ A Large Scale Empirical Study
Software Metric Based Impact Analysis of Code Smells ‐ A Large Scale Empirical Study
ABSTRACTContextCode smells are indicators of poor design and implementation choices that negatively affect software quality and maintainability. Moreover, it is difficult and time‐...
Exploring Test Smells Across Programming Languages: A Systematic Mapping Study
Exploring Test Smells Across Programming Languages: A Systematic Mapping Study
Tests are essential for ensuring code quality in software development.
However, poor implementation practices can compromise the
maintainability and evolution of test code, leading...
Test smells 20 years later: detectability, validity, and reliability
Test smells 20 years later: detectability, validity, and reliability
AbstractTest smells aim to capture design issues in test code that reduces its maintainability. These have been extensively studied and generally found quite prevalent in both huma...
Towards Seamless Tracking-Free Web: Improved Detection of Trackers via One-class Learning
Towards Seamless Tracking-Free Web: Improved Detection of Trackers via One-class Learning
Abstract
Numerous tools have been developed to aggressively block the execution of popular JavaScript programs in Web browsers. Such blocking also affects functio...
Optimizing assembly processes with augmented reality: a case study on TurtleBots
Optimizing assembly processes with augmented reality: a case study on TurtleBots
Augmented reality (AR) technology is revolutionizing traditional assembly processes, offering intuitive and interactive guidance that significantly enhances operational efficiency ...
Certified semantics and analysis of JavaScript
Certified semantics and analysis of JavaScript
Sémantique et analyse certifiée de JavaScript
JavaScript est un langage de programmation maintenant très utilisé - y compris dans des domaines où la sécurité est im...
Discovering code smells in Javascript software using clustering techniques
Discovering code smells in Javascript software using clustering techniques
A presença de code smells em projetos de software têm consequências negativas no que diz respeito a coesão e manutenibilidade do código. Assim sendo, a análise de técnicas usadas p...
A Study on Transforming the GTI(Greater Tumen Initiative) into Infrastructure Developer in Northeast Asia
A Study on Transforming the GTI(Greater Tumen Initiative) into Infrastructure Developer in Northeast Asia
The purpose of this study was to find the need to develop GTI into a Northeast Asia developer, and to reorganize and develop the current GTI. Through the study, we found that there...

