Episode 9 - 3 mistakes you're probably making while unit testing your code episode artwork

EPISODE · Mar 2, 2024 · 15 MIN

Episode 9 - 3 mistakes you're probably making while unit testing your code

from The Scripting Den Podcast · host Fernando Doglio

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/deleteman123YouTube: https://www.youtube.com/@the-scripting-denNewsletter: 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!

Episode metadata supplied by the publisher feed · Published Mar 2, 2024

Embed this episode

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 t...

Distinct summary based on available episode metadata or transcript content.

Ready to play

Episode 9 - 3 mistakes you're probably making while unit testing your code

0:00 15:46

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of The Scripting Den Podcast?

This episode is 15 minutes long.

When was this The Scripting Den Podcast episode published?

This episode was published on March 2, 2024.

Can I download this The Scripting Den Podcast episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!