Flaky Test Automation and Mitigating Test Crashes in Agile Releases
DOI:
https://doi.org/10.22399/ijcesen.3644Keywords:
Flaky Tests, non-deterministic tests, test bugs, software testing, Systemic Flakiness, flake associated test crashesAbstract
Flaky tests—tests that fail non-deterministically without any changes in code—pose a serious threat to the reliability and efficiency of automated testing pipelines. They lead to wasted engineering hours, reduced confidence in CI/CD systems, and increased costs. This paper provides an in-depth analysis of the causes of flaky test automation and presents actionable strategies to detect, diagnose, and mitigate test flakiness and crashes. We also explore emerging tools, AI-assisted techniques, and empirical studies that highlight industry practices for maintaining robust and deterministic test suites.In risk management and software testing industry, prevention aims to stop an event from happening in the first place, while mitigation focuses on reducing the severity or impact of an event that has already occurred or is unavoidable. Prevention is proactive, trying to stop a problem before it starts, while mitigation is reactive, managing the consequences of a problem. In this research, we are broadly describing techniques of mitigation of occurred and detected flaky test failures and automation crashes.
References
[1] https://blog.mergify.com/flaky-tests-who-are-they-and-how-to-classify-them/
[2] Detecting Flaky Tests in Probabilistic and Machine Learning Applications. In Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA ’20), July 18–22, 2020.
[3] Understanding Flaky Tests: The Developer’s Perspective - University of Zurich Zurich, Switzerland, 2019
[4] A Study on the Lifecycle of Flaky Tests – Microsoft and University of Illinois at Urbana-Champaign Urbana, Illinois, USA, 2020
[5] A Qualitative Study on the Sources, Impacts, and Mitigation Strategies of Flaky Tests - University of Luxembourg, 2021
[6] Test Flakiness’ Causes, Detection, Impact and Responses: A Multivocal Review, School of Mathematical and Computational Sciences, Massey University, New Zealand – 2022
[7] Practical Flaky Test Prediction using Common Code Evolution and Test History Data – 2023
[8] Systemic Flakiness: An Empirical Analysis of Co-Occurring Flaky Test Failures – 2025
[9] https://blog.mergify.com/flaky-tests-who-are-they-and-how-to-classify-them/
[10] Detecting Flaky Tests in Probabilistic and Machine Learning Applications. In Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA ’20), July 18–22, 2020.
[12] https://www.testrail.com/blog/flaky-tests/
[13] https://www.datadoghq.com/knowledge-center/flaky-tests/
[15] https://circleci.com/blog/reducing-flaky-test-failures/
[16] “Reducing flaky builds by 18x,” Dec. 2020. [Online]. Available: https://github.blog/2020-12-16-reducing-flaky-builds-by-18x/
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 International Journal of Computational and Experimental Science and Engineering

This work is licensed under a Creative Commons Attribution 4.0 International License.