Engineering

6 min read

A field guide to flaky tests

Flaky tests cost more than they look. The patterns we see most often, and how Monadot finds and fixes them.

A field guide to flaky tests

Category

Engineering

Published

Reading

6 min read

Share

// article

A flaky test fails sometimes and passes when you run it again. It feels harmless. It isn't: every flake teaches your team to ignore red builds.

The usual suspects

  • Time and timezones

  • Shared state between tests

  • Network calls that should have been mocked

  • Order-dependent setup

How Monadot fixes them

The agent reruns a failing test in isolation, compares the runs and traces the difference back to its cause. Then it proposes the smallest fix that makes the test deterministic.

//

13

—

start shipping

Let it think. You ship.

Give Monadot your hardest ticket. It reads the codebase, plans the change, and opens a pull request you’ll actually want to merge.

$

npx monadot init

No credit card · 14-day Pro trial · Cancel anytime

//

13

—

start shipping

Let it think. You ship.

Give Monadot your hardest ticket. It reads the codebase, plans the change, and opens a pull request you’ll actually want to merge.

$

npx monadot init

No credit card · 14-day Pro trial · Cancel anytime

//

13

—

start shipping

Let it think. You ship.

Give Monadot your hardest ticket. It reads the codebase, plans the change, and opens a pull request you’ll actually want to merge.

$

npx monadot init

No credit card · 14-day trial · Cancel anytime

$

Create a free website with Framer, the website builder loved by startups, designers and agencies.