• Episode 31 - How (and why) to optimize your unit tests for performance?

  • Aug 31 2024
  • Length: 26 mins
  • Podcast

Episode 31 - How (and why) to optimize your unit tests for performance?

  • Summary

  • Unit tests are usually 2nd (if not 3rd) class citizens in any codebase, teams usually work on them only once they're done with all the "important" features.
    However, if you do it like that, chances are those tests will eventually start slowing your development process down. They will affect your coding, and your deployment pipelines, affecting your time-to-resolution metrics or even the business by slowing down time-to-market numbers.

    In other words, bad tests are a real problem.

    In this episode I cover several reasons why optimizing for performance is actually a great idea, and multiple things you can do to improve your unit tests.

    Mainly:

    • Get rid of your 3rd party dependencies.
    • Test only what needs to be tested.
    • Optimize the test data.
    • Implement selective testing.


    Get in touch!

    • X (Twitter): https://twitter.com/deleteman123
    • YouTube: https://www.youtube.com/@the-scripting-den
    • My 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

    Show More Show Less
activate_Holiday_promo_in_buybox_DT_T2
activate_samplebutton_t1

What listeners say about Episode 31 - How (and why) to optimize your unit tests for performance?

Average customer ratings

Reviews - Please select the tabs below to change the source of reviews.