DocumentCode :
1958582
Title :
A Study on the Relation between Antipatterns and the Cost of Class Unit Testing
Author :
Sabane, A. ; Di Penta, Massimiliano ; Antoniol, Giuliano ; Gueheneuc, Y.
Author_Institution :
DGIGL, Ecole Polytech. de Montreal, Montreal, QC, Canada
fYear :
2013
fDate :
5-8 March 2013
Firstpage :
167
Lastpage :
176
Abstract :
Antipatterns are known as recurring, poor design choices, recent and past studies indicated that they negatively affect software systems in terms of understand ability and maintainability, also increasing change-and defect-proneness. For this reason, refactoring actions are often suggested. In this paper, we investigate a different side-effect of antipatterns, which is their effect on testability and on testing cost in particular. We consider as (upper bound) indicator of testing cost the number of test cases that satisfy the minimal data member usage matrix (MaDUM) criterion proposed by Bashir and Goel. A study-carried out on four Java programs, Ant 1.8.3, ArgoUML 0.20, Check Style 4.0, and JFreeChart 1.0.13-supports the evidence that, on the one hand, antipatterns unit testing requires, on average, a number of test cases substantially higher than unit testing for non-antipattern classes. On the other hand, antipattern classes must be carefully tested because they are more defect-prone than other classes. Finally, we illustrate how specific refactoring actions-applied to classes participating in antipatterns-could reduce testing cost.
Keywords :
Java; program testing; software maintenance; Ant 1.8.3 Java; ArgoUML 0.20 Java; Check Style 4.0 Java; JFreeChart 1.0.13 Java; Java program; MaDUM criterion; antipattern unit testing; class unit testing; minimal data member usage matrix; refactoring action; software change-proneness; software defect-proneness; software maintainability; testability effect; testing cost; Atmospheric measurements; Electrocardiography; Java; Open source software; Particle measurements; Testing; Antipatterns; Object oriented testing; Refactoring; Testing cost;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Maintenance and Reengineering (CSMR), 2013 17th European Conference on
Conference_Location :
Genova
ISSN :
1534-5351
Print_ISBN :
978-1-4673-5833-0
Type :
conf
DOI :
10.1109/CSMR.2013.26
Filename :
6498465
Link To Document :
بازگشت