DocumentCode
950869
Title
On The Detection of Test Smells: A Metrics-Based Approach for General Fixture and Eager Test
Author
Van Rompaey, B. ; Du Bois, Bert ; Demeyer, Serge ; Rieger, Matthias
Author_Institution
Univ. Antwerpen, Antwerp
Volume
33
Issue
12
fYear
2007
Firstpage
800
Lastpage
817
Abstract
As a fine-grained defect detection technique, unit testing introduces a strong dependency on the structure of the code. Accordingly, test coevolution forms an additional burden on the software developer which can be tempered by writing tests in a manner that makes them easier to change. Fortunately, we are able to concretely express what a good test is by exploiting the specific principles underlying unit testing. Analogous to the concept of code smells, violations of these principles are termed test smells. In this paper, we clarify the structural deficiencies encapsulated in test smells by formalizing core test concepts and their characteristics. To support the detection of two such test smells, General Fixture and Eager Test, we propose a set of metrics defined in terms of unit test concepts. We compare their detection effectiveness using manual inspection and through a comparison with human reviewing. Although the latter is the traditional means for test quality assurance, our results indicate it is not a reliable means for test smell detection. This work thus stresses the need for a more reliable detection mechanism and provides an initial contribution through the validation of test smell metrics.
Keywords
program testing; software metrics; code structure; eager test; fine-grained defect detection technique; general fixture; human review; manual inspection; metrics-based approach; reliable detection mechanism; software developer; test quality assurance; test smell detection; Maintainability; Quality assurance; Test design;
fLanguage
English
Journal_Title
Software Engineering, IEEE Transactions on
Publisher
ieee
ISSN
0098-5589
Type
jour
DOI
10.1109/TSE.2007.70745
Filename
4359471
Link To Document