Skip to main content
QUICK REVIEW

[Paper Review] Machine Learning Techniques for Software Quality Assurance: A Survey

Safa Omri, Carsten Sinz|arXiv (Cornell University)|Apr 29, 2021
Software Engineering ResearchComputer Science78 references8 citations
TL;DR

This survey reviews machine learning techniques for software quality assurance, focusing on fault prediction and test case prioritization. It highlights how deep learning improves defect prediction by capturing code semantics, and demonstrates that machine learning methods like neural networks and Bayesian networks significantly enhance test case prioritization efficiency while maintaining high fault detection rates.

ABSTRACT

Over the last years, machine learning techniques have been applied to more and more application domains, including software engineering and, especially, software quality assurance. Important application domains have been, e.g., software defect prediction or test case selection and prioritization. The ability to predict which components in a large software system are most likely to contain the largest numbers of faults in the next release helps to better manage projects, including early estimation of possible release delays, and affordably guide corrective actions to improve the quality of the software. However, developing robust fault prediction models is a challenging task and many techniques have been proposed in the literature. Closely related to estimating defect-prone parts of a software system is the question of how to select and prioritize test cases, and indeed test case prioritization has been extensively researched as a means for reducing the time taken to discover regressions in software. In this survey, we discuss various approaches in both fault prediction and test case prioritization, also explaining how in recent studies deep learning algorithms for fault prediction help to bridge the gap between programs' semantics and fault prediction features. We also review recently proposed machine learning methods for test case prioritization (TCP), and their ability to reduce the cost of regression testing without negatively affecting fault detection capabilities.

Motivation & Objective

  • To analyze the state of the art in machine learning applications for software quality assurance, particularly in fault prediction and test case prioritization.
  • To identify limitations in traditional feature-based defect prediction, such as inability to capture semantic differences in code with similar structure.
  • To evaluate the effectiveness of deep learning in generating semantic-aware features for improved defect prediction accuracy.
  • To assess machine learning techniques for test case prioritization in reducing regression testing costs without sacrificing fault detection.

Proposed method

  • Systematic review of 100+ studies on machine learning in software quality assurance, focusing on fault prediction and test case prioritization.
  • Categorization of traditional features (e.g., code complexity, churn, process metrics) used in defect prediction and their limitations in capturing semantics.
  • Evaluation of deep learning models (e.g., autoencoders, RNNs, code embeddings) for learning semantic representations from source code to improve feature discrimination.
  • Survey of machine learning techniques in test case prioritization, including neural networks, Bayesian networks, genetic algorithms, and reinforcement learning.
  • Analysis of surrogate functions used to rank test cases based on historical failure data, execution coverage, or fault-detection potential.
  • Comparison of classification algorithms (SVM, Naive Bayes, KNN, logistic regression) and clustering methods (k-means) in prioritizing test cases.

Experimental results

Research questions

  • RQ1How do traditional software metrics perform in predicting fault-prone modules, and what are their limitations in capturing semantic differences?
  • RQ2To what extent can deep learning models improve defect prediction by learning semantic representations from source code?
  • RQ3Which machine learning techniques are most effective for test case prioritization in reducing regression testing time?
  • RQ4How do surrogate functions in test case prioritization correlate with actual fault detection effectiveness?
  • RQ5Can hybrid approaches combining static analysis, code metrics, and machine learning improve prediction accuracy?

Key findings

  • Traditional defect prediction features such as code complexity and churn metrics fail to distinguish between code with identical syntactic structure but different semantics, limiting prediction accuracy.
  • Deep learning models significantly improve defect prediction by learning semantic representations from source code, enabling better discrimination between functionally different but syntactically similar code regions.
  • Neural networks and Bayesian networks are among the most effective techniques for test case prioritization, outperforming traditional methods in fault detection speed and coverage.
  • Reinforcement learning and active learning approaches show promise in generating adaptive test case orders that maximize fault detection under resource constraints.
  • Hybrid models combining static analysis results with machine learning features achieve higher accuracy in pre-release fault prediction than models using code metrics alone.
  • Genetic algorithms and clustering-based methods offer scalable alternatives for test case prioritization, particularly in large test suites with high computational demands.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.