Identifying and Addressing Test Smells in JavaScript: A Developer-Centric Study
| dc.contributor.author | Jamille Carmo Oliveira | |
| dc.contributor.author | Luigi Mateus | |
| dc.contributor.author | Gabriel Amaral | |
| dc.contributor.author | Tássio Virgínio | |
| dc.contributor.author | Carla Bezerra | |
| dc.contributor.author | Ivan Machado | |
| dc.contributor.author | Larissa Rocha | |
| dc.coverage.spatial | Bolivia | |
| dc.date.accessioned | 2026-03-22T19:46:21Z | |
| dc.date.available | 2026-03-22T19:46:21Z | |
| dc.date.issued | 2025 | |
| dc.description.abstract | 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. | |
| dc.identifier.doi | 10.5753/sbes.2025.9901 | |
| dc.identifier.uri | https://doi.org/10.5753/sbes.2025.9901 | |
| dc.identifier.uri | https://andeanlibrary.org/handle/123456789/78026 | |
| dc.language.iso | en | |
| dc.source | Universidade do Estado da Bahia | |
| dc.subject | JavaScript | |
| dc.subject | Code refactoring | |
| dc.subject | Test (biology) | |
| dc.subject | Computer science | |
| dc.subject | Context (archaeology) | |
| dc.subject | Code smell | |
| dc.subject | Java | |
| dc.subject | Thematic analysis | |
| dc.subject | Categorization | |
| dc.subject | Perception | |
| dc.title | Identifying and Addressing Test Smells in JavaScript: A Developer-Centric Study | |
| dc.type | article |