Exploring the relationships between design measures and software quality in object-oriented systems

被引:390
作者
Briand, LC [1 ]
Wüst, J [1 ]
Daly, JW [1 ]
Porter, DV [1 ]
机构
[1] Fraunhofer Inst Expt Software Engn, D-67661 Kaiserslautern, Germany
关键词
coupling; cohesion; inheritance; object-oriented; metrics; measurement; empirical validation;
D O I
10.1016/S0164-1212(99)00102-8
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
One goal of this paper is to empirically explore the relationships between existing object-oriented (OO) coupling, cohesion, and inheritance measures and the probability of fault detection in system classes during testing. In other words, we wish to better understand the relationship between existing design measurement in OO systems and the quality of the software developed. The second goal is to propose an investigation and analysis strategy to make these kind of studies more repeatable and comparable, a problem which is pervasive in the literature on quality measurement. Results show that many of the measures capture similar dimensions in the data set, thus reflecting the fact that many of them are based on similar principles and hypotheses. However, it is shown that by using a subset of measures, accurate models can be built to predict which classes most of the faults are likely to lie in. When predicting fault-prone classes, the best model shows a percentage of correct classifications higher than 80% and finds more than 90% of faulty classes. Besides the size of classes, the frequency of method invocations and the depth of inheritance hierarchies seem to be the main driving factors of fault-proneness. (C) 2000 Elsevier Science Inc. All rights reserved.
引用
收藏
页码:245 / 273
页数:29
相关论文
共 35 条
[1]  
[Anonymous], 1994, USE FACTOR ANAL DEV
[2]  
[Anonymous], 1997, REGRESSION MODELS CA
[3]  
[Anonymous], 07106 SAG U
[4]  
[Anonymous], 1996, Software Metrics
[5]  
[Anonymous], DECIS SUPPORT SYST
[6]  
[Anonymous], P 1995 S SOFTW REUS
[7]  
Barnett V., 1995, Outliers in statistical data
[8]   A validation of object-oriented design metrics as quality indicators [J].
Basili, VR ;
Briand, LC ;
Melo, WL .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1996, 22 (10) :751-761
[9]  
Belsley D.A., 1980, Regression Diagnostics: Identifying Influential Data and Sources of Collinearity
[10]  
BRIAND L, 1996, EMPIR SOFTW ENG, V2, P291