The root cause of flaky tests is some sort of non-determinism, either in the test code or in the application code. The root causes we’ll examine are leaked state, race conditions, network/third-party dependency, fixed time dependency and randomness.
Table of contents
Leaked stateRace conditionsNetwork/third-party dependencyFixed time dependencyRandomnessTakeawaysSort: