Hacker News new | ask | show | jobs
by doikor 1643 days ago
If you have some rare (rare as in it happens once every few months or something like that) error and you need logging about it. Also testing it ensures nobody by mistake removes that bit of logging by accident.
1 comments

code reviews would probably be a better fit to prevent that.
Code reviews are useful, but I've never seen them used as an argument against writing tests.