John Karanja

The field guide · rule 14 of 16

Let tests decide when work is done

Agree what "correct" means as tests before you build, and for money, test the rule itself.

What it means

Without agreed checks, "finished" is just an opinion. Write tests at the right levels: small ones for single pieces, bigger ones for pieces working together, and full runs through a real browser. For important logic, run the old and the new code on the same inputs and compare. For money, test the rule that must always hold, not just a few examples.

What goes wrong without it

A change passes a quick look, goes live, and quietly breaks the refund flow.

How I build it

From systems I build and run.

Ask your team

  1. Do tests decide when a piece of work is done?
  2. Is your most important money rule tested directly?
  3. Do tests run automatically before every release?

A "no" or "not sure" is worth a closer look.

How a review checks this

A review reads what your tests actually prove, and names the important behaviour that nothing tests yet.

Request a reviewThe offer: One-day hands-on workshopCheck your system in one minute

Related rules