Investigating Severity Thresholds for Test Smells

Conference Paper (2020)
Author(s)

D. Spadini (TU Delft - Software Engineering)

Martin Schvarcbacher (Universiteit van Amsterdam)

Ana Oprescu (Universiteit van Amsterdam)

Magiel Bruntink (Software Improvement Group)

Alberto Bacchelli (TU Delft - Software Engineering)

Research Group
Software Engineering
Copyright
© 2020 D. Spadini, Martin Schvarcbacher, Ana Oprescu, Magiel Bruntink, A. Bacchelli
DOI related publication
https://doi.org/10.1145/3379597.3387453
More Info
expand_more
Publication Year
2020
Language
English
Copyright
© 2020 D. Spadini, Martin Schvarcbacher, Ana Oprescu, Magiel Bruntink, A. Bacchelli
Research Group
Software Engineering
Pages (from-to)
311-321
ISBN (electronic)
9781450379571
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

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. Preprint [https://doi.org/10.5281/zenodo.3744281], data and material [https://doi.org/10.5281/zenodo.3611111].

Files

Spadini2020.pdf
(pdf | 0.985 Mb)
License info not available