Predicting Defective Software Components from Code Complexity Measures
Authors:
- Hongyu ZhangHZHongyu Zhang
- Xiuzhen ZhangXZXiuzhen Zhang
- Ming GuMGMing Gu
- 1 December 2007
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 93-96
Abstract
The ability to predict defective modules can help us allocate limited quality assurance resources effectively and efficiently. In this paper, we propose a complexity- based method for predicting defect-prone components. Our method takes three code-level complexity measures as input, namely Lines of Code, McCabe's Cyclomatic Complexity and Halstead's Volume, and classifies components as either defective or non-defective. We perform an extensive study of twelve classification models using the public NASA datasets. Cross-validation results show that our method can achieve good prediction accuracy. This study confirms that static code complexity measures can be useful indicators of component quality.Keywords
This publication has 3 references indexed in Scilit:
- Data Mining Static Code Attributes to Learn Defect PredictorsIEEE Transactions on Software Engineering, 2006
- The necessity of assuring quality in software measurement data2004
- A Complexity MeasureIEEE Transactions on Software Engineering, 1976