News for hackers. Stuff that matters.
Re:‘Woof’, a pure Scala 3 logging library by macpete42 on Saturday December 18, 2021 @03:42PM (#29608326)
Why would I verify logging which itself is a verification instrument? And, seriously, how hard is it to emit a diagnostic message so I need a test for that to get it right?
Re:‘Woof’, a pure Scala 3 logging library by doikor on Saturday December 18, 2021 @04:05PM (#29608490)
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.
Re:‘Woof’, a pure Scala 3 logging library by macpete42 on Saturday December 18, 2021 @04:35PM (#29608756)
code reviews would probably be a better fit to prevent that.
Re:‘Woof’, a pure Scala 3 logging library by the_af on Saturday December 18, 2021 @04:44PM (#29608827)
Code reviews are useful, but I've never seen them used as an argument against writing tests.
Re:‘Woof’, a pure Scala 3 logging library by the_af on Saturday December 18, 2021 @04:09PM (#29608529)
There are tests of tests, why wouldn't there exist techniques for the verification of logging?