Using Software Dependency to Bug Prediction
Open Access
- 1 January 2013
- journal article
- research article
- Published by Wiley in Mathematical Problems in Engineering
- Vol. 2013, 1-12
Abstract
Software maintenance, especially bug prediction, plays an important role in evaluating software quality and balancing development costs. This study attempts to use several quantitative network metrics to explore their relationships with bug prediction in terms of software dependency. Our work consists of four main steps. First, we constructed software dependency networks regarding five dependency scenes at the class-level granularity. Second, we used a set of nine representative and commonly used metrics—namely, centrality, degree, PageRank, and HITS, as well as modularity—to quantify the importance of each class. Third, we identified how these metrics were related to the proneness and severity of fixed bugs in Tomcat and Ant and determined the extent to which they were related. Finally, the significant metrics were considered as predictors for bug proneness and severity. The result suggests that there is a statistically significant relationship between class’s importance and bug prediction. Furthermore, betweenness centrality and out-degree metric yield an impressive accuracy for bug prediction and test prioritization. The best accuracy of our prediction for bug proneness and bug severity is up to 54.7% and 66.7% (top 50, Tomcat) and 63.8% and 48.7% (top 100, Ant), respectively, within these two cases.Keywords
Funding Information
- National Basic Research Program of China (2014CB340401, 61273216, 61272111, 61202048, 61202032, 201210621214, JSEB2012-02, LQ12F02011)
- National Natural Science Foundation of China (2014CB340401, 61273216, 61272111, 61202048, 61202032, 201210621214, JSEB2012-02, LQ12F02011)
- National Natural Science Foundation of China (2014CB340401, 61273216, 61272111, 61202048, 61202032, 201210621214, JSEB2012-02, LQ12F02011)
- National Natural Science Foundation of China (2014CB340401, 61273216, 61272111, 61202048, 61202032, 201210621214, JSEB2012-02, LQ12F02011)
- National Natural Science Foundation of China (2014CB340401, 61273216, 61272111, 61202048, 61202032, 201210621214, JSEB2012-02, LQ12F02011)
- Wuhan Planning Project of Science and Technology (2014CB340401, 61273216, 61272111, 61202048, 61202032, 201210621214, JSEB2012-02, LQ12F02011)
- Open Foundation of Jiangsu Provincial Key Laboratory of Electronic Business (2014CB340401, 61273216, 61272111, 61202048, 61202032, 201210621214, JSEB2012-02, LQ12F02011)
- Zhejiang Provincial Natural Science Foundation of China (2014CB340401, 61273216, 61272111, 61202048, 61202032, 201210621214, JSEB2012-02, LQ12F02011)
This publication has 11 references indexed in Scilit:
- Software fault prediction metrics: A systematic literature reviewInformation and Software Technology, 2013
- Multi-granularity evolution analysis of software using complex network theoryJournal of Systems Science and Complexity, 2011
- Evaluating Complexity, Code Churn, and Developer Activity Metrics as Indicators of Software VulnerabilitiesIEEE Transactions on Software Engineering, 2010
- Node centrality in weighted networks: Generalizing degree and shortest pathsSocial Networks, 2010
- Power laws in softwareACM Transactions on Software Engineering and Methodology, 2008
- Power-Laws in a Large Object-Oriented Software SystemIEEE Transactions on Software Engineering, 2007
- Finding and evaluating community structure in networksPhysical Review E, 2004
- Software systems as complex networks: Structure, function, and evolvability of software collaboration graphsPhysical Review E, 2003
- Scale-free networks from optimal designEurophysics Letters, 2002
- Centrality in social networks conceptual clarificationSocial Networks, 1978