Home / Companies / Qase / Blog / Post Details
Content Deep Dive

Flaky tests: How to avoid the downward spiral of bad tests and bad code

Blog post from Qase

Post Details
Company
Date Published
Author
Nick Moore
Word Count
2,133
Company Posts That Month
10
Language
English
Hacker News Points
-
Post removed?
No
Summary

Alarm fatigue, a phenomenon familiar in both medical and software testing contexts, arises from the overwhelming number of alerts that are often unreliable, causing them to be ignored over time, which can be perilous for both patients and developers. In software development, this is likened to the issue of flaky tests, which are non-deterministic tests that can unpredictably pass or fail without changes to the code, leading to a loss of trust and productivity among developers. Flaky tests can have various causes, such as concurrency issues, network problems, or platform dependencies, and have significant consequences including wasted time, reduced code quality, and delayed delivery. Despite efforts by major tech companies like Google and Microsoft, completely eradicating test flakiness is challenging, but strategies such as writing smaller tests, quarantining flaky tests, and using metrics to monitor flakiness can mitigate the impact. Identifying and fixing flaky tests often involves dynamic and static methods, capturing detailed context, and maintaining thorough documentation to prevent a downward spiral that affects software quality and developer morale.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Developer Experience 1 287 186 98 -17%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.