“Don’t mock what you don't own” in 5 minutes (2022)
A common issue when writing tests for real-world software is how to deal with third-party dependencies. Let’s examine an old, but counter-intuitive principle. Once upon a time, I made a stupid joke on Twitter about the Don’t Mock What You Don’t Own testing principle: Only mock what you own, because mocking others is rude. — Yours Truly , Tweet While it didn’t get me fired, it led to me being tricked into giving a 5 minute-long talk about it. Given the confused replies I got to the joke Tweet,