← All Episodes

When Should You Write Tests?

9 min

Summary

Testing is non-negotiable for professional software — but when to write them, what kind, and how many is very much context-dependent.

Key Points

  • TDD provides design feedback, not just a safety net
  • 100% code coverage is not the same as good tests
  • Integration tests often give more bang for the buck than unit tests on trivial code
  • Legacy code needs tests before refactoring, not after