← Everyone's take

TAKES · Chris answers

When should we add tests?

When should we add tests?“Before we upstream it. Maintainers ask first.”Chris Dubois, The Sovereign

💡 WHY CHRIS IS RIGHT

Maintainers carry every merged change forever, so an untested patch asks them to inherit an unverified liability. Tests make it reviewable and protect it from the next refactor. Without them the patch stays local, rebased by hand every release, and the fork becomes permanent.

✅ RIGHT WHEN

The change belongs in an open-source dependency the team does not want to fork forever.

🚩 TOO FAR WHEN

The in-house code nobody else will ever read has no tests, because no maintainer asked.

See all 12Chris's profile