wordfor

flaky test

noun

Software design

  1. A test that sometimes passes and sometimes fails on the same code, usually because of timing, ordering or shared state. The checkout test was flaky because it asserted before the animation finished; waiting for the element fixed it.

In plain words

  • the test fails randomly
  • just rerun CI and it passes
  • the test passes locally but sometimes fails
  • intermittent test failures

See also race condition heisenbug works on my machine

Find similar words