โ† All takes

TAKES

When should we add tests?

Everyone writes tests. For a different bug.

Tap anyone to read and share their take on its own.

๐ŸŽฏ SUPER REASONABLE

Super Reasonable, the advisor who never takes a side

Tests are insurance, and the premium should follow the risk. Code that moves money, checks permissions or will outlive its team earns tests early. An experiment with a kill date earns them once it survives. A test is worth what its failure would cost, whatever the coverage report says.

  • Leaks data or moves money โ†’ test the access rules first
  • Might be deleted next month โ†’ test it once it survives
  • Broke this way before โ†’ pin it with a regression test

Related: โœ… Test Coverage