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
- Azeem Ahmad (ORCID: https://orcid.org/0000-0003-3049-1261)
Institutions
- Prince Sultan University (SA)
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