Python Test

Practical automated testing for software engineers using Python. Mostly. But also so much more.

https://podcast.pythontest.com

Eine durchschnittliche Folge dieses Podcasts dauert 32m. Bisher sind 218 Folge(n) erschienen. .

Gesamtlänge aller Episoden: 4 days 21 hours 32 minutes

subscribe
share






recommended podcasts


episode 216: 216: ruff, uv, and Astral: Python tooling, much faster, with Rust

[transcript]


Charlie Marsh and team are using Rust to make Python tooling faster.

  • Ruff can take the place of Flake8, isort, and Black, and so much more.
  • uv can take the place of pip, pip-tools, and virtualenv
  • Astral is Charlie's venture backed company, and what they have with `ruff` and `uv` is just the start.

Since uv is the newest tool, there's quite a bit of the discussion diving into uv...


share








   48m
 
 

episode 215: 215: Staying Technical as a Manager

[transcript]


Software engineers that move into leadership roles have a struggle between learning leadership skills, maintaining technical skills, and learning new leadership and technical skills. 
Matt Makai went from individual contributor to developer relations to leadership in devrel. 
We discuss how to stay technical, as well as dive into some results of his studies in how companies use developer relationship channels...


share








 February 25, 2024  40m
 
 

episode 214: 214: Python Testing in VS Code

[transcript]


If you haven't tried running automated tests, especially with pytest,  in VS Code recently, you should take another look.
The Python for VS Code interface for testing, especially for pytest, has changed recently. 
On this episode we discuss the change with the software engineer working on the pytest changes, Eleanor Boyd, and the product manager, Courtney Webster...


share








 February 7, 2024  38m
 
 

episode 213: 213: Repeating Tests

[transcript]


If a test fails in a test suite, I'm going to want to re-run the test. I may even want to re-run a test, or a subset of the suite, a bunch of times.  
There are a few pytest plugins that help with this:

  • pytest-repeat
  • pytest-rerunfailures
  • pytest-flakefinder
  • pytest-instafail

We talk about each of these in this episode.


Sponsored by PyCharm Pro

  • Use code PYTEST for 20% off PyCharm Professional at jetbrains...


share








 January 19, 2024  15m
 
 

episode 212: 212: Canon TDD - by Kent Beck

[transcript]


In 2002, Kent Beck released a book called  "Test Driven Development by Example".
In December of 2023, Kent wrote an article called "Canon TDD".
With Kent's permission, this episode contains the full content of the article.

Brian's commentary is saved for a followup episode...


share








 January 13, 2024  7m
 
 

episode 211: 211: Stamp out test dependencies with pytest plugins

[transcript]


We want to be able to run tests in a suite, and debug them in isolation, and have the behavior be the same.  
If the behavior is different in isolation vs in a suite, it's a nightmare to debug...


share








 December 16, 2023  19m
 
 

episode 210: 210: TDD - Refactor while green

[transcript]


Test Driven Development. Red, Green, Refactor. 

  • Do we have to do the refactor part? 
  • Does the refactor at the end include tests? 
  • Or can I refactor the tests at any time?
  • Why is refactor at the end? 

This episode is to talk about this with a an example.


Sponsored by PyCharm Pro

  • Use code PYTEST for 20% off PyCharm Professional at jetbrains...


share








 November 30, 2023  17m
 
 

episode 209: 209: Testing argparse Applications

[transcript]


How do you test the argument parsing bit of an application that uses argparse?

This episode covers:

  • Design for Test: Structuring your app or script so it's easier to test.
  • pytest & capsys for testing stdout
  • Adding debug and preview flags for debugging and testing
  • And reverting to subprocess...


share








 November 16, 2023  16m
 
 

episode 208: 208: Tests with no assert statements

[transcript]


Why on earth would you want to write a test with no assert statements?
After all, aren't assert statements how you decide wether a test passes or fails?

In this episode, we walk through a handful of useful examples of test code without asserts.
We also talk about how these types of tests are a great way to dip your toe into testing.


Sponsored by PyCharm Pro

  • Use code PYTEST for 20% off PyCharm Professional at jetbrains...


share








 October 30, 2023  14m
 
 

episode 207: 207: Welcome to "Python Test", pytest course, pytest-repeat and pytest-flakefinder

[transcript]


  • Podcast name: "Test & Code" -> "Python Test"
  • Python Bytes Podcast
  • Python People Podcast
  • Python Test Podcast <- you are here
    • which is still, at least for now, at testandcode.com
  • New course: "The Complete pytest Course"
  • pytest-repeat, which I'm starting to contribute to
    • Give `--repeat-scope` a try. You can use it to change from repeating every test to repeating the session, module, or class...


share








 September 26, 2023  14m