Test & Code

116: 15 amazing pytest plugins - Michael Kennedy


Listen Later

pytest plugins are an amazing way to supercharge your test suites, leveraging great solutions from people solving test problems all over the world. In this episode Michael and I discuss 15 favorite plugins that you should know about.

We also discuss fixtures and plugins and other testing tools that work great with pytest

  • tox
  • GitHub Actions
  • Coverage.py
  • Selenium + splinter with pytest-splinter
  • Hypothesis
  • And then our list of pytest plugins:

    1. pytest-sugar
    2. pytest-cov
    3. pytest-stress
    4. pytest-repeat
    5. pytest-instafail
    6. pytest-metadata
    7. pytest-randomly
    8. pytest-xdist
    9. pytest-flake8
    10. pytest-timeout
    11. pytest-spec
    12. pytest-picked
    13. pytest-freezegun
    14. pytest-check
    15. fluentcheck
    16. That last one isn't a plugin, but we also talked about pytest-splinter at the beginning. So I think it still counts as 15.

      Special Guest: Michael Kennedy.

      Sponsored By:

      • PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22

      Links:

      • pytest-sugar — changes the default look and feel of pyptest (e.g. progressbar, show tests that fail instantly)
      • pytest-cov — run coverage.py from pytest
      • pytest-stress — allows you to loop tests for a user defined amount of time.
      • pytest-repeat — for repeating test execution
      • pytest-instafail — shows failures and errors instantly instead of waiting until the end of test session.
      • pytest-metadata — for accessing test session metadata
      • pytest-randomly — randomly order tests and control random.seed
      • pytest-xdist — distributed testing
      • pytest-flake8 — pytest plugin to run flake8
      • pytest-timeout — terminate tests after a certain timeout
      • pytest-spec — display test execution output like a specification
      • pytest-picked — run the tests related to the changed files (according to Git)
      • pytest-freezegun — easily freeze time
      • pytest-check — allows multiple failures per test
      • fluentcheck — fluent assertions
      • episode 104 — Top 28 pytest plugins with Anthony Sottile
      • Python Testing with pytest — The easiest way to get up to speed with pytest fast. There's also a chapter dedicated to plugins that also teaches you how to write and test your own plugins.
      • tox
      • GitHub Actions
      • Coverage.py
      • pytest-splinter — provides a set of fixtures to use splinter for browser testing
      • splinter — makes it easy to write automated tests of web applications
      • hypothesis — property-based testing
      • Talk Python Episode #267 — This episode is a cross post with Talk Python
      ★ Support this podcast on Patreon ★
      ...more
      View all episodesView all episodes
      Download on the App Store

      Test & CodeBy Brian Okken

      • 4.7
      • 4.7
      • 4.7
      • 4.7
      • 4.7

      4.7

      70 ratings


      More shows like Test & Code

      View all
      Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

      Software Engineering Radio - the podcast for professional software developers

      272 Listeners

      The Changelog: Software Development, Open Source by Changelog Media

      The Changelog: Software Development, Open Source

      283 Listeners

      Thoughtworks Technology Podcast by Thoughtworks

      Thoughtworks Technology Podcast

      41 Listeners

      Data Skeptic by Kyle Polich

      Data Skeptic

      483 Listeners

      Talk Python To Me by Michael Kennedy

      Talk Python To Me

      592 Listeners

      Software Engineering Daily by Software Engineering Daily

      Software Engineering Daily

      625 Listeners

      Soft Skills Engineering by Jamison Dance and Dave Smith

      Soft Skills Engineering

      269 Listeners

      Python Bytes by Michael Kennedy and Brian Okken

      Python Bytes

      213 Listeners

      Data Engineering Podcast by Tobias Macey

      Data Engineering Podcast

      142 Listeners

      Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

      Syntax - Tasty Web Development Treats

      981 Listeners

      Practical AI by Practical AI LLC

      Practical AI

      190 Listeners

      The Stack Overflow Podcast by The Stack Overflow Podcast

      The Stack Overflow Podcast

      64 Listeners

      The Real Python Podcast by Real Python

      The Real Python Podcast

      140 Listeners

      Oxide and Friends by Oxide Computer Company

      Oxide and Friends

      47 Listeners

      The Pragmatic Engineer by Gergely Orosz

      The Pragmatic Engineer

      52 Listeners