The Scripting Den Podcast

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

March 02, 2024 Fernando Doglio Season 1 Episode 9
Episode 9 - 3 mistakes you're probably making while unit testing your code
The Scripting Den Podcast
More Info
The Scripting Den Podcast
Episode 9 - 3 mistakes you're probably making while unit testing your code
Mar 02, 2024 Season 1 Episode 9
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:

  1. Testing more than one thing inside each test.
  2. Relying on external services for your tests (like a database).
  3. 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!


Rate us!
To ensure the podcast reaches more developers, make sure to rate it on your favorite podcasting app and in Podchaser!

Thank you!

Show Notes

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:

  1. Testing more than one thing inside each test.
  2. Relying on external services for your tests (like a database).
  3. 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!


Rate us!
To ensure the podcast reaches more developers, make sure to rate it on your favorite podcasting app and in Podchaser!

Thank you!