MDFlaker: A tool for multi-factor detection and root cause analysis of flaky tests

Test flakiness, characterized by inconsistent test outcomes without changes to the codebase, is a prevalent issue in continuous integration (CI) environments. This paper introduces a practical tool named MDFlaker that implements a multi-factor approach for detecting flaky tests, grounded in empirical research. The tool analyzes four key factors—traceback coverage, test smells, flakiness frequency, and test size—and applies a K-Nearest Neighbors (KNN) model for classification. Depending on the test case’s execution history, the tool switches between traceback-prioritized or multi-factor classification strategy. Integrated with platforms like GitHub and Travis CI, it processes real-time data from commits, builds, and test executions to support both research experimentation and industrial deployment. By improving the accuracy and interpretability of flaky test detection, the tool helps developers regain trust in CI pipelines, reduces debugging overhead, and fosters high-quality, rapid software delivery. This work not only enhances software reliability in practice but also opens new avenues for research in automated software quality assurance. • A reusable tool (MDFlaker) for flaky test detection and root cause analysis. • Combines test smells, traceback coverage, flakiness frequency, and test size. • Uses conditional KNN classification based on test execution history. • Integrated with GitHub and Travis CI for real-time CI/CD feedback. • Enhances developer trust by reducing non-deterministic test failures.

Authors

Institutions

Publication Details

Journal
Software Impacts
Published
2025-10-01
DOI
https://doi.org/10.1016/j.simpa.2025.100794
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

MDFlaker: A tool for multi-factor detection and root cause analysis of flaky tests

Azeem Ahmad
Software Impacts
Software Testing and Debugging Techniques
article

MDFlaker: A tool for multi-factor detection and root cause analysis of flaky tests

Azeem Ahmad
article en

Abstract

Test flakiness, characterized by inconsistent test outcomes without changes to the codebase, is a prevalent issue in continuous integration (CI) environments. This paper introduces a practical tool named MDFlaker that implements a multi-factor approach for detecting flaky tests, grounded in empirical research. The tool analyzes four key factors—traceback coverage, test smells, flakiness frequency, and test size—and applies a K-Nearest Neighbors (KNN) model for classification. Depending on the test case’s execution history, the tool switches between traceback-prioritized or multi-factor classification strategy. Integrated with platforms like GitHub and Travis CI, it processes real-time data from commits, builds, and test executions to support both research experimentation and industrial deployment. By improving the accuracy and interpretability of flaky test detection, the tool helps developers regain trust in CI pipelines, reduces debugging overhead, and fosters high-quality, rapid software delivery. This work not only enhances software reliability in practice but also opens new avenues for research in automated software quality assurance. • A reusable tool (MDFlaker) for flaky test detection and root cause analysis. • Combines test smells, traceback coverage, flakiness frequency, and test size. • Uses conditional KNN classification based on test execution history. • Integrated with GitHub and Travis CI for real-time CI/CD feedback. • Enhances developer trust by reducing non-deterministic test failures.

Software ImpactsVol. 26
Prince Sultan University (SA)
Openalex Percentile: Top 66%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.