News for hackers. Stuff that matters.
Re:Don’t mock what you don’t own by chickenpotpie on Wednesday June 22, 2022 @11:17AM (#31837157)
As the author notes, you can break this rule. As with all rules in software, you learn the rule so you know that you can break the rule.

> "Because often the end goal is about writing clearer code even with shitty tests."

If you're worried about people being afraid to write tests, this really scares people away. Nothing makes me want to write a test for my changes less than a 2000 line test file with 50 mocks.

There are no comments on this comment yet.