Srikanth Sastry

Tests Exist for Maintainability

๐ŸŒณ Evergreen ยท

The fundamental purpose of unit tests is not verification. It is sustainable software maintenance. Verification is a side effect. The real value: unit tests enable a codebase to evolve over time without degrading. Tests that verify behavior but are themselves unmaintainable defeat the purpose; tests so complex nobody dares modify them are net negative.

When maintenance is the north star, every testing decision follows: simplicity-over-dry-in-tests, test-behavior-not-implementation, independence over shared infrastructure, tests-as-executable-documentation.