News for hackers. Stuff that matters.
Re:Don’t mock what you don’t own by fleventynine on Wednesday June 22, 2022 @04:31PM (#31841496)
No tests can be better than a bunch of brittle mock object tests that don't test anything important. Thankfully it's very easy to delete them.

If changing one line of code regularly requires me to update mocks in 100 test cases, those test cases may have negative value.

Re:Don’t mock what you don’t own by scaryclam on Thursday June 23, 2022 @09:55AM (#31849170)
I've seen plenty of scenarios when a test has also given a false sense of security. It's not actually testing anything important, but looks like it does and should be, but doesn't actually catch defects. This is also a case of no tests being better as at least everyone knows something's untested :/