Software quality assurance increasingly depends on the ability to combine automated testing with data-driven estimates of defect risk. Conventional test suites reveal failures in executed scenarios but do not necessarily identify which untested changes are most likely to introduce faults. Machine learning models can prioritize code review and testing by learning associations between historical defect outcomes, code structure, change activity, and process characteristics. This narrative review synthesizes established research on software defect prediction and proposes a transparent evaluation framework integrating data preparation, temporal validation, calibrated prediction, risk-based test selection, and continuous monitoring. It distinguishes test effectiveness from model discrimination and emphasizes precision–recall analysis, operational cost, data leakage prevention, and human oversight. A conceptual graph illustrates how testing effort might be redistributed according to predicted risk; it does not represent measured experimental outcomes. The paper argues that machine learning should supplement rather than replace automated tests, and that deployment claims require prospective, project-specific evidence. Limitations include incomplete defect labels, shifting development practices, class imbalance, and uncertain cross-project transferability
No takes yet. Share an insight, caveat, or question.
Finale Doshi‐Velez (2026) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: