Test & Code cover image

Test & Code

Latest episodes

undefined
7 snips
Feb 7, 2024 • 39min

214: Python Testing in VS Code

The podcast discusses the recent changes in the Python for VS Code interface for testing, with a focus on pytest. The speakers talk about the background and improvements in testing support, the integration of Python testing in VS Code, the rollout process for new features, bug fixes and user feedback, and how to stay updated on Python testing in VS Code. They emphasize the importance of relying on issue reports and user feedback to ensure the extension is working as intended.
undefined
Jan 19, 2024 • 14min

213: Repeating Tests

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-repeatpytest-rerunfailurespytest-flakefinderpytest-instafailWe talk about each of these in this episode. Help support the show AND learn pytest: The Complete pytest course is now a bundle, with each part available separately.pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CIThen pytest Booster Rockets can help with advanced parametrization and building plugins.Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you. ★ Support this podcast on Patreon ★
undefined
Jan 13, 2024 • 8min

212: Canon TDD - by Kent Beck

Kent Beck, author of 'Test Driven Development by Example', discusses Canon TDD. They explore adapting TDD to individual needs and the importance of creating test lists for expected behaviors. The conversation delves into test list conversion, managing new tests, and the significance of refactoring in the testing process.
undefined
Dec 15, 2023 • 19min

211: Stamp out test dependencies with pytest plugins

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.
undefined
Nov 30, 2023 • 17min

210: TDD - Refactor while green

The podcast explores the necessity of the refactor step in Test Driven Development, including when to refactor and whether tests should be included. They discuss adding a 'done' feature to a command line application, the process of refactoring while writing tests, and the importance of writing first drafts and committing code frequently.
undefined
Nov 16, 2023 • 17min

209: Testing argparse Applications

The podcast discusses testing argparse applications, including designing for testability, using pytest and capsys for testing stdout, debugging and preview flags, and reverting to subprocess.run if unable to modify code under test. They also cover logging and print statements, testing with command line arguments and 'slex' function, and adding new requirements and testing techniques.
undefined
Oct 30, 2023 • 13min

208: Tests with no assert statements

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. Help support the show AND learn pytest: The Complete pytest course is now a bundle, with each part available separately.pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CIThen pytest Booster Rockets can help with advanced parametrization and building plugins.Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you. ★ Support this podcast on Patreon ★
undefined
Sep 26, 2023 • 14min

207: pytest course, pytest-repeat and pytest-flakefinder

New course: "The Complete pytest Course"pytest-repeat, which I'm starting to contribute toGive `--repeat-scope` a try. You can use it to change from repeating every test to repeating the session, module, or class.pytest-flakefinder, which is an alternative to pytest-repeatpytest-check is completely unrelated, but mentioned in the show Help support the show AND learn pytest: The Complete pytest course is now a bundle, with each part available separately.pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CIThen pytest Booster Rockets can help with advanced parametrization and building plugins.Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you. ★ Support this podcast on Patreon ★
undefined
Aug 23, 2023 • 21min

206: TDD in Context

TDD (Test Driven Development) started from Test First Programming, and has been around at least since the 90's. However, software tools and available CI systems have changed quite a bit since then. Maybe it's time to re-examine the assumptions, practices, processes, and principles of TDD.  At least in the context of my software engineering career, modifications to TDD, at least the version of TDD as it's frequently taught, have been necessary. This is the start of a series focused on examining TDD and related lightweight practices and processes.Links from the show:From XPTest FirstUnit TestsAcceptance TestsTest-Driven Development (wikipedia) Help support the show AND learn pytest: The Complete pytest course is now a bundle, with each part available separately.pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CIThen pytest Booster Rockets can help with advanced parametrization and building plugins.Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you. ★ Support this podcast on Patreon ★
undefined
Aug 1, 2023 • 30min

205: pytest autouse fixtures

On a recent episode of PythonBytes, I suggested it's hard to come up with good examples for pytest autouse fixtures, as there aren't very many good reasons to use them.  James Falcon was kind enough to reach out and correct me. In this episode, we describe:what fixtures arewhat autouse fixtures aregreat reasons to use them Help support the show AND learn pytest: The Complete pytest course is now a bundle, with each part available separately.pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CIThen pytest Booster Rockets can help with advanced parametrization and building plugins.Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you. ★ Support this podcast on Patreon ★

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app