encyclopegia.org

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

  1. 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)

  2. 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/

  3. 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)

  4. 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)

  5. 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)

  6. 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)

  7. 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)

  8. 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)

  9. 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)

  10. 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

Related articles

Izod impact strength test

stub · references available

Allen's test

stub · references available

Öko-Test

stub · references available

ABR-Test

stub · references available

Wartegg test

stub · references available

Classical test theory

stub · references available

Finkelstein's test

stub · references available

Baka and Test

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1376046395 · 0.5 · snapshot enwiki-001376046395

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.