2008 · 119 citations · 8 references
ComputingComputer ScienceData MiningPredictive AnalyticsSoftware EngineeringDefect ClassificationDefect DetectionSoftware EvolutionSoftware MaintenanceSoftware MetricsSoftware RefactoringCorrelationDefect PredictionPrediction ModelsRefactoringSoftware Evolution AnalysisSoftware Fault Prediction
The study investigates how refactoring and other evolution activities affect software defect rates. Using a case study of five open‑source projects, the authors extracted 110 evolution‑related features—split into refactoring and non‑refactoring categories—from versioning and issue tracking data, and fed them into classification algorithms to build defect prediction models over six‑month periods. The models showed that both refactoring and non‑refactoring features yield high‑quality predictions, and that increased refactoring correlates with fewer defects, suggesting refactoring should be integral to bug‑fixing and evolutionary changes.
This paper analyzes the influence of evolution activities such as refactoring on software defects. In a case study of five open source projects we used attributes of software evolution to predict defects in time periods of six months. We use versioning and issue tracking systems to extract 110 data mining features, which are separated into refactoring and non-refactoring related features. These features are used as input into classification algorithms that create prediction models for software defects. We found out that refactoring related features as well as non-refactoring related features lead to high quality prediction models. Additionally, we discovered that refactorings and defects have an inverse correlation: The number of software defects decreases, if the number of refactorings increased in the preceding time period. As a result, refactoring should be a significant part of both bug fixes and other evolutionary changes to reduce software defects.
8
Are refactorings less error-prone than other changes?
Peter Weißgerber, Stephan Diehl · 2006 · 96 citations