Flaky test
Flaky test (or flaky test case) is a software test that exhibits non-deterministic behavior, i.e., it may pass or fail inconsistently without any changes in the underlying code. This flakiness can arise from a number of causes, including concurrency issues, timing dependencies, reliance on external systems, or lack of sufficient isolation between tests. Flaky tests are problematic in continuous integration environments because they decrease trust in automated test suites and can hide real defects, leading to wasted debugging effort and decreased productivity. Flaky tests can be mitigated by improving test isolation, controlling sources of nondeterminism (e.g., time and randomness), mocking of external dependencies, and rerunning of tests to confirm failures. Flakiness is a well-known issue in large-scale software development, and there are many techniques to tackle it, such as test retries, quarantine mechanisms, or better test design practices. Nevertheless, flaky tests remain an active research area in software engineering, especially for distributed systems and large code bases where nondeterminism is more prevalent. Research has also investigated automated detection of flaky tests using machine-learning techniques.…
Flaky test (or flaky test case) is a software test that exhibits non-deterministic behavior, i.e., it may pass or fail inconsistently without any changes in the underlying code. This flakiness can arise from a number of causes, including concurrency issues, timing dependencies, reliance on external systems, or lack of sufficient isolation between tests. Flaky tests are problematic in continuous integration environments because they decrease trust in automated test suites and can hide real defects, leading to wasted debugging effort and decreased productivity. Flaky tests can be mitigated by improving test isolation, controlling sources of nondeterminism (e.g., time and randomness), mocking of external dependencies, and rerunning of tests to confirm failures. Flakiness is a well-known issue in large-scale software development, and there are many techniques to tackle it, such as test retries, quarantine mechanisms, or better test design practices. Nevertheless, flaky tests remain an active research area in software engineering, especially for distributed systems and large code bases where nondeterminism is more prevalent. Research has also investigated automated detection of flaky tests using machine-learning techniques. One study evaluated machine-learning models for detecting both order-dependent and non-order-dependent flaky tests using test suites from 26 Python projects containing more than 67,000 tests.
References
- A large-scale empirical comparison of static and dynamic test case prioritization techniques · retrieved 2026-11-17 · rev 1376046395
Cite this reference
MLA "A large-scale empirical comparison of static and dynamic test case prioritization techniques." Luo, Qingzhou; Harman, Mark; Gao, Yuanliang (2016). 2026-11-17. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 25 November 2026.
Chicago "A large-scale empirical comparison of static and dynamic test case prioritization techniques." Luo, Qingzhou; Harman, Mark; Gao, Yuanliang (2016). 2026-11-17. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA Luo, Qingzhou; Harman, Mark; Gao, Yuanliang (2016). (2026). A large-scale empirical comparison of static and dynamic test case prioritization techniques. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Evaluating Features for Machine Learning Detection of Order- and Non-Order-Dependent Flaky Tests · retrieved 2026-09-20 · rev 1376046395
Cite this reference
MLA "Evaluating Features for Machine Learning Detection of Order- and Non-Order-Dependent Flaky Tests." 2026-09-20. https://ieeexplore.ieee.org/document/9787846/. Accessed 25 November 2026.
Chicago "Evaluating Features for Machine Learning Detection of Order- and Non-Order-Dependent Flaky Tests." 2026-09-20. https://ieeexplore.ieee.org/document/9787846/.
APA encyclopegia.org. (2026). Evaluating Features for Machine Learning Detection of Order- and Non-Order-Dependent Flaky Tests. Retrieved November 25, 2026, from https://ieeexplore.ieee.org/document/9787846/
- D e F laker: Automatically detecting flaky tests · retrieved 2026-11-17 · rev 1376046395
Cite this reference
MLA "D e F laker: Automatically detecting flaky tests." Bell, Jonathan; Legunsen, Owolabi; Hilton, Michael; Eloussi, Lamis; Yung, Tegawendé F. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 25 November 2026.
Chicago "D e F laker: Automatically detecting flaky tests." Bell, Jonathan; Legunsen, Owolabi; Hilton, Michael; Eloussi, Lamis; Yung, Tegawendé F. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Bell, Jonathan; Legunsen, Owolabi; Hilton, Michael; Eloussi, Lamis; Yung, Tegawendé F. (2026). D e F laker: Automatically detecting flaky tests. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Root causes of flaky tests in software systems · retrieved 2026-11-17 · rev 1376046395
Cite this reference
MLA "Root causes of flaky tests in software systems." Lam, Wing; Kang, Shin Yoo (2020). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 25 November 2026.
Chicago "Root causes of flaky tests in software systems." Lam, Wing; Kang, Shin Yoo (2020). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Lam, Wing; Kang, Shin Yoo (2020). (2026). Root causes of flaky tests in software systems. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Gao, Yuanliang; Zhang, Lingming (2019). Understanding flaky tests: The developer's perspective . doi : 10.1109/ICSE.2019.00077 . Wikipedia revision 1376046395, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1376046395
Cite this reference
MLA "Gao, Yuanliang; Zhang, Lingming (2019). Understanding flaky tests: The developer's perspective . doi : 10.1109/ICSE.2019.00077 . Wikipedia revision 1376046395, retrieved 2026-11-18." Gao, Yuanliang; Zhang, Lingming (2019). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 25 November 2026.
Chicago "Gao, Yuanliang; Zhang, Lingming (2019). Understanding flaky tests: The developer's perspective . doi : 10.1109/ICSE.2019.00077 . Wikipedia revision 1376046395, retrieved 2026-11-18." Gao, Yuanliang; Zhang, Lingming (2019). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Gao, Yuanliang; Zhang, Lingming (2019). (2026). Gao, Yuanliang; Zhang, Lingming (2019). Understanding flaky tests: The developer's perspective . doi : 10.1109/ICSE.2019.00077 . Wikipedia revision 1376046395, retrieved 2026-11-18. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Flaky tests at Google and how we mitigate them · retrieved 2026-11-17 · rev 1376046395
Cite this reference
MLA "Flaky tests at Google and how we mitigate them." Micco, John (2017). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 25 November 2026.
Chicago "Flaky tests at Google and how we mitigate them." Micco, John (2017). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Micco, John (2017). (2026). Flaky tests at Google and how we mitigate them. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Understanding and addressing flaky tests: A systematic literature review · retrieved 2026-11-17 · rev 1376046395
Cite this reference
MLA "Understanding and addressing flaky tests: A systematic literature review." Eck, William; Palomba, Fabio; De Lucia, Andrea (2021). 2026-11-17. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 25 November 2026.
Chicago "Understanding and addressing flaky tests: A systematic literature review." Eck, William; Palomba, Fabio; De Lucia, Andrea (2021). 2026-11-17. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA Eck, William; Palomba, Fabio; De Lucia, Andrea (2021). (2026). Understanding and addressing flaky tests: A systematic literature review. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- GUIDER: GUI structure and vision co-guided test script repair for Android apps · retrieved 2026-11-17 · rev 1376046395
Cite this reference
MLA "GUIDER: GUI structure and vision co-guided test script repair for Android apps." Gruber, Markus; Fraser, Gordon (2021). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 25 November 2026.
Chicago "GUIDER: GUI structure and vision co-guided test script repair for Android apps." Gruber, Markus; Fraser, Gordon (2021). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Gruber, Markus; Fraser, Gordon (2021). (2026). GUIDER: GUI structure and vision co-guided test script repair for Android apps. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- On the use of retries for flaky tests · retrieved 2026-11-17 · rev 1376046395
Cite this reference
MLA "On the use of retries for flaky tests." Habchi, Sarrah; Papadakis, Mike (2022). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 25 November 2026.
Chicago "On the use of retries for flaky tests." Habchi, Sarrah; Papadakis, Mike (2022). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Habchi, Sarrah; Papadakis, Mike (2022). (2026). On the use of retries for flaky tests. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Flaky tests in modern software development: Characteristics and mitigation · retrieved 2026-11-17 · rev 1376046395
Cite this reference
MLA "Flaky tests in modern software development: Characteristics and mitigation." Zhang, Lingming; Elbaum, Sebastian (2020). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 25 November 2026.
Chicago "Flaky tests in modern software development: Characteristics and mitigation." Zhang, Lingming; Elbaum, Sebastian (2020). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Zhang, Lingming; Elbaum, Sebastian (2020). (2026). Flaky tests in modern software development: Characteristics and mitigation. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
Cite this article
MLA
"Flaky test." encyclopegia.org, 2026, https://encyclopegia.org/wiki/flaky-test. Accessed 25 November 2026.
Chicago
"Flaky test." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/flaky-test.
APA
encyclopegia.org. (2026). Flaky test. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/flaky-test
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON