DocumentCode
3407446
Title
Strategies for avoiding text fixture smells during software evolution
Author
Greiler, Michaela ; Zaidman, Andy ; Van Deursen, Arie ; Storey, Margaret-Anne
Author_Institution
Delft Univ. of Technol., Delft, Netherlands
fYear
2013
fDate
18-19 May 2013
Firstpage
387
Lastpage
396
Abstract
An important challenge in creating automated tests is how to design test fixtures, i.e., the setup code that initializes the system under test before actual automated testing can start. Test designers have to choose between different approaches for the setup, trading off maintenance overhead with slow test execution. Over time, test code quality can erode and test smells can develop, such as the occurrence of overly general fixtures, obscure inline code and dead fields. In this paper, we investigate how fixture-related test smells evolve over time by analyzing several thousand revisions of five open source systems. Our findings indicate that setup management strategies strongly influence the types of test fixture smells that emerge in code, and that several types of fixture smells often emerge at the same time. Based on this information, we recommend important guidelines for setup strategies, and suggest how tool support can be improved to help in both avoiding the emergence of such smells as well as how to refactor code when test smells do appear.
Keywords
configuration management; program testing; public domain software; software maintenance; automated testing; automated tests; code refactoring; fixture-related test smells; open source systems; setup code; setup management strategies; software evolution; test code quality; text fixture smell avoidance; Dispersion; Fixtures; Java; Market research; Software systems; Testing; maintenance; test evolution; test fixture smells;
fLanguage
English
Publisher
ieee
Conference_Titel
Mining Software Repositories (MSR), 2013 10th IEEE Working Conference on
Conference_Location
San Francisco, CA
ISSN
2160-1852
Print_ISBN
978-1-4799-0345-0
Type
conf
DOI
10.1109/MSR.2013.6624053
Filename
6624053
Link To Document