Investigating Severity Thresholds for Test Smells

Open Access
Authors
  • A. Bacchelli
Publication date 2020
Book title MSR 2020
Book subtitle 2020 IEEE/ACM 17th International Conference on Mining Software Repositories : proceedings : Seoul, Republic of Korea, 29-30 June 2020
ISBN (electronic)
  • 9781450375177
Event 2020 IEEE/ACM 17th International Conference on Mining Software Repositories
Pages (from-to) 311-321
Number of pages 11
Publisher Nerw York, New York: The Association for Computing Machinery
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract
Test smells are poor design decisions implemented in test code, which can have an impact on the effectiveness and maintainability of unit tests. Even though test smell detection tools exist, how to rank the severity of the detected smells is an open research topic. In this work, we aim at investigating the severity rating for four test smells and investigate their perceived impact on test suite maintainability by the developers. To accomplish this, we first analyzed some 1,500 open-source projects to elicit severity thresholds for commonly found test smells. Then, we conducted a study with developers to evaluate our thresholds. We found that (1) current detection rules for certain test smells are considered as too strict by the developers and (2) our newly defined severity thresholds are in line with the participants' perception of how test smells have an impact on the maintainability of a test suite.
Document type Conference contribution
Language English
Published at https://doi.org/10.5281/zenodo.3744281 https://doi.org/10.1145/3379597.3387453
Other links https://doi.org/10.5281/zenodo.3611111
Downloads
spadini2020 (Accepted author manuscript)
Permalink to this page
Back