On The Relation of Test Smells to Software Code Quality

Conference Paper (2018)
Author(s)

Davide Spadini (TU Delft - Software Engineering, Software Improvement Group)

F. Palomba (Universitat Zurich)

A.E. Zaidman (TU Delft - Software Engineering)

Magiel Bruntink (Software Improvement Group)

A. Bacchelli (Universitat Zurich)

Research Group
Software Engineering
Copyright
© 2018 D. Spadini, F. Palomba, A.E. Zaidman, Magiel Bruntink, A. Bacchelli
DOI related publication
https://doi.org/10.1109/ICSME.2018.00010
More Info
expand_more
Publication Year
2018
Language
English
Copyright
© 2018 D. Spadini, F. Palomba, A.E. Zaidman, Magiel Bruntink, A. Bacchelli
Research Group
Software Engineering
Pages (from-to)
12-23
ISBN (electronic)
978-1-5386-7870-1
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 sub-optimal design choices in the implementation of test code. As reported by recent studies, their presence might not only negatively affect the comprehension of test suites but can also lead to test cases being less effective in finding bugs in production code. Although significant steps toward understanding test smells, there is still a notable absence of studies assessing their association with software quality.
In this paper, we investigate the relationship between the presence of test smells and the change- and defect-proneness of test code, as well as the defect-proneness of the tested production code. To this aim, we collect data on 221 releases of ten software systems and we analyze more than a million test cases to investigate the association of six test smells and their co-occurrence with software quality. Key results of our study include:(i) tests with smells are more change- and defect-prone, (ii) ‘Indirect Testing’, ‘Eager Test’, and ‘Assertion Roulette’ are the most significant smells for change-proneness and, (iii) production code is more defect-prone when tested by smelly tests.

Files

On_the_Relation_of_Test_Smells... (pdf)
(pdf | 0.697 Mb)
- Embargo expired in 04-07-2022
License info not available