首页    期刊浏览 2025年06月21日 星期六
登录注册

文章基本信息

  • 标题:Empirical Analysis of Object-Oriented Design Metrics for Predicting Unit Testing Effort of Classes
  • 本地全文:下载
  • 作者:Mourad Badri ; Fadel Toure
  • 期刊名称:Journal of Software Engineering and Applications
  • 印刷版ISSN:1945-3116
  • 电子版ISSN:1945-3124
  • 出版年度:2012
  • 卷号:5
  • 期号:7
  • 页码:513-526
  • DOI:10.4236/jsea.2012.57060
  • 出版社:Scientific Research Publishing
  • 摘要:In this paper, we investigate empirically the relationship between object-oriented design metrics and testability of classes. We address testability from the point of view of unit testing effort. We collected data from three open source Java software systems for which JUnit test cases exist. To capture the testing effort of classes, we used metrics to quantify the corresponding JUnit test cases. Classes were classified, according to the required unit testing effort, in two categories: high and low. In order to evaluate the relationship between object-oriented design metrics and unit testing effort of classes, we used logistic regression methods. We used the univariate logistic regression analysis to evaluate the individual effect of each metric on the unit testing effort of classes. The multivariate logistic regression analysis was used to explore the combined effect of the metrics. The performance of the prediction models was evaluated using Receiver Operating Characteristic analysis. The results indicate that: 1) complexity, size, cohesion and (to some extent) coupling were found significant predictors of the unit testing effort of classes and 2) multivariate regression models based on object-oriented design metrics are able to accurately predict the unit testing effort of classes.
  • 关键词:Software Testability; Unit Testing; Testing Effort; Metrics; Relationship; Prediction and Empirical Analysis
国家哲学社会科学文献中心版权所有