Please use this identifier to cite or link to this item:
Publication type: Conference paper
Type of review: Not specified
Title: Revisiting test smells in automatically generated tests : limitations, pitfalls, and opportunities
Authors: Panichella, Annibale
Panichella, Sebastiano
Fraser, Gordon
Sawant, Anand Ashok
Hellendoorn, Vincent J.
et. al: No
DOI: 10.1109/ICSME46990.2020.00056
Proceedings: 2020 IEEE International Conference on Software Maintenance and Evolution (ICSME)
Pages: 523
Pages to: 533
Conference details: International Conference on Software Maintenance (ICSM), Adelaide, Australia, 28 September - 2 October 2020
Issue Date: 2020
Publisher / Ed. Institution: IEEE
ISBN: 978-1-7281-5619-4
ISSN: 2576-3148
Language: English
Subject (DDC): 005: Computer programming, programs and data
Abstract: Test smells attempt to capture design issues in test code that reduce their maintainability. Previous work found such smells to be highly common in automatically generated test-cases, but based this result on specific static detection rules; although these are based on the original definition of "test smells", a recent empirical study showed that developers perceive these as overly strict and non-representative of the maintainability and quality of test suites. This leads us to investigate how effective such test smell detection tools are on automatically generated test suites. In this paper, we build a dataset of 2,340 test cases automatically generated by EVOSUITE for 100 Java classes. We performed a multi-stage, cross-validated manual analysis to identify six types of test smells and label their instances. We benchmark the performance of two test smell detection tools: one widely used in prior work, and one recently introduced with the express goal to match developer perceptions of test smells. Our results show that these test smell detection strategies poorly characterized the issues in automatically generated test suites; the older tool’s detection strategies, especially, misclassified over 70% of test smells, both missing real instances (false negatives) and marking many smell-free tests as smelly (false positives). We identify common patterns in these tests that can be used to improve the tools, refine and update the definition of certain test smells, and highlight as of yet uncharacterized issues. Our findings suggest the need for (i) more appropriate metrics to match development practice; and (ii) more accurate detection strategies, to be evaluated primarily in industrial contexts.
Further description: ​© 2020 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
Fulltext version: Accepted version
License (according to publishing contract): Licence according to publishing contract
Departement: School of Engineering
Organisational Unit: Institute of Applied Information Technology (InIT)
Appears in collections:Publikationen School of Engineering

Files in This Item:
File Description SizeFormat 
2020_Panichella-etal_Revisiting-test-smells-in-automatically-generated-tests_ICSME.pdfAccepted Version248.57 kBAdobe PDFThumbnail

Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.