Reposted by Egor Andreevich
‘the main purpose of unit tests is keeping your code from being violently shat on by others in an environment where everything changes uncontrollably all the time.’
(they also defend against blunders by future-me)
yosefk.com
Unit tests mark territory more than squash bugs