Test & Code cover image

Test & Code

211: Stamp out test dependencies with pytest plugins

Dec 15, 2023
This podcast discusses the challenges of test dependencies and provides strategies for debugging and resolving them. It explores the benefits of pytest plugins like 'pytest-randomly' and 'pytest-reverse', which can randomize and reverse test order. Using plugins to remove test dependencies improves efficiency and isolates fixtures. The podcast also covers the process of debugging tests and highlights the importance of reproducible test failures for enhancing project efficiency.
18:01

Podcast summary created with Snipd AI

Quick takeaways

  • Isolating tests is crucial to ensure reproducibility and identify and resolve issues caused by dependencies.
  • PyTest plugins like PyTest Randomly and PyTest Reverse help in exposing and mitigating test dependencies by randomizing test execution and maintaining test groups in different orders.

Deep dives

The Importance of Reproducible Tests

Reproducibility in tests ensures that when a test fails individually, it also fails when run as part of a test suite. This highlights the necessity of isolating tests to identify and resolve issues caused by dependencies.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode