Identifying and Addressing Test Smells in JavaScript: A Developer-Centric Study
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.
Authors
- Jamille Carmo Oliveira
- Tássio Virgínio (ORCID: https://orcid.org/0000-0001-6259-4957)
- Carla Bezerra (ORCID: https://orcid.org/0000-0002-5879-5067)
- Ivan Machado (ORCID: https://orcid.org/0000-0001-9027-2293)
- Larissa Rocha (ORCID: https://orcid.org/0009-0000-3928-6374)
- Gabriel Amaral
- Luigi Mateus
Institutions
- Universidade do Estado da Bahia (BR)
- United Food and Commercial Workers (US)
- Universidad Evangélica Boliviana (BO)
Publication Details
- Published
- 2025-09-22
- DOI
- https://doi.org/10.5753/sbes.2025.9901
- Primary Topic
- Teaching and Learning Programming
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior
- Conselho Nacional de Desenvolvimento Científico e Tecnológico
- Fundação de Amparo à Pesquisa do Estado da Bahia