Y
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
macpete42
1643 days ago
code reviews would probably be a better fit to prevent that.
link
the_af
1643 days ago
Code reviews are useful, but I've never seen them used as an argument against writing tests.
link