
The Scripting Den Podcast
Insights about the Software Development industry from a senior developer (with more than 20 years of experience).
Short, to-the-point episodes where I share my insights.
Give it a listen and see if you learn a thing or two!
The Scripting Den Podcast
Episode 9 - 3 mistakes you're probably making while unit testing your code
Hi again!
In this rather technical episode, I'm covering some common mistakes you might be making while unit testing your code without even realizing it!
These are very common and in some spaces, they're even common practice, so keep an eye out, you might be doing this thinking it's the right way to unit test!
Mainly, the mistakes (or bad practices) I'm covering are:
- Testing more than one thing inside each test.
- Relying on external services for your tests (like a database).
- Only aiming for test coverage and not worrying about any other metric.
Check it out and let me know what you thought about it!
For tip #2, when I talk about spies and mocks, if you don't know what they are, here (https://blog.bitsrc.io/unit-testing-deep-dive-what-are-stubs-mocks-spies-and-dummies-6f7fde21f710) is a nice article I wrote a while ago that explains all those concepts, you might want to check it out!
Get in touch!
- X (Twitter): https://twitter.com/deleteman123
- YouTube: https://www.youtube.com/@the-scripting-den
- Newsletter: https://fernandodoglio.substack.com/
Rate us!
To ensure the podcast reaches more developers, make sure to rate it on your favorite podcasting app and in Podchaser!
Thank you!