Explorez tous les épisodes du podcast Test & Code
| Titre | Date | Durée | |
|---|---|---|---|
| 223: Writing Stuff Down is a Super Power | 17 Nov 2024 | 00:21:05 | |
Taking notes well can help to listen better, remember things, show respect, be more accountable, free up mind space to solve problems. This episode discusses
Learn pytest
| |||
| 222: Import within a Python package | 07 Sep 2024 | 00:12:02 | |
In this episode we're talking about importing part of a package into another part of the same package. We'll look at: `from . import module` and `from .module import something` and also: `import package` to access the external API from with the package. Why would we use `import package` if `from . import api` would work fine? Learn pytest
| |||
| 213: Repeating Tests | 19 Jan 2024 | 00:13:22 | |
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. We talk about each of these in this episode. Learn pytest
| |||
| 122: Better Resumes for Software Engineers - Randall Kanna | 16 Jul 2020 | 00:36:13 | |
A great resume is key to landing a great software job. Randall Kanna is on the show today to help us understand how to improve our resumes, and in turn, help us have better careers. Special Guest: Randall Kanna. Sponsored By:
Links:
| |||
| 121: Industrial 3D Printing & Python, Finite State Machines, and Simulating Hardware - Len Wanger | 10 Jul 2020 | 00:49:22 | |
Len Wanger works on industrial 3D printers. And I was pleased to find out that In this episode we talk about:
Special Guest: Len Wanger. Sponsored By:
Links:
| |||
| 120: FastAPI & Typer - Sebastián Ramírez | 03 Jul 2020 | 00:43:55 | |
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python based on standard Python type hints. The person behind FastAPI and Typer is Sebastián Ramírez. Sebastián is on the show today, and we discuss:
Special Guest: Sebastián Ramírez. Sponsored By:
Links: | |||
| 119: Editable Python Installs, Packaging Standardization, and pyproject.toml - Brett Cannon | 26 Jun 2020 | 00:36:07 | |
There's stuff going on in Python packaging and pyproject.toml. Brett and I talk about some upcoming work on Python packaging, such as:
And then get off on tangents and talk about:
Special Guest: Brett Cannon. Sponsored By:
Links:
| |||
| 118: Code Coverage and 100% Coverage | 26 Jun 2020 | 00:42:49 | |
Code Coverage or Test Coverage is a way to measure what lines of code and branches in your code that are utilized during testing. But there's also lots of different opinions about using it.
I've been asked many times what I think about code coverage or test coverage. We'll talk about:
And also the Pareto Principle or 80/20 rule, and the law of diminishing returns and how that applies (or doesn't) to test coverage. Sponsored By:
Links: | |||
| 117: Python extension for VS Code - Brett Cannon | 18 Jun 2020 | 00:51:18 | |
The Python extension for VS Code is most downloaded extension for VS Code. In this episode, Brett and I discuss the Python extension and VS Code, including:
Special Guest: Brett Cannon. Sponsored By:
Links: | |||
| 116: 15 amazing pytest plugins - Michael Kennedy | 08 Jun 2020 | 00:51:28 | |
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
And then our list of pytest plugins:
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:
Links:
| |||
| 115: Catching up with Nina Zakharenko | 30 May 2020 | 00:42:22 | |
One of the great things about attending in person coding conferences, such as PyCon, is the hallway track, where you can catch up with people you haven't seen for possibly a year, or maybe even the first time you've met in person. Nina is starting something like the hallway track, online, on twitch, and it's already going, so check out the first episode of Python Tea. Interesting coincidence is that this episode is kind of like a hallway track discussion between Nina and Brian. We've had Nina on the show a couple times before, but it's been a while.
In 2018, we talked about Mentoring on episode 44. In this episode, we catch up with Nina, find out what she's doing, and talk about a bunch of stuff, including:
Special Guest: Nina Zakharenko. Sponsored By:
Links: | |||
| 114: The Python Software Foundation (PSF) Board Elections - Ewa Jodlowska / Christopher Neugebauer | 24 May 2020 | 00:30:46 | |
"The mission of the Python Software Foundation is to promote, protect, and advance the Python programming language, and to support and facilitate the growth of a diverse and international community of Python programmers." That's a lot of responsibility, and to that end, the PSF Board Directors help out quite a bit. If you want to be a part of the board, you can. There's an election coming up right around the corner and you gotta get your nomination in by May 31. You can also join the PSF if you want to vote for who gets to be part of the board. But what does it really mean to be on the Board, and what are some of the things the PSF does? To help answer those questions, I've got Ewa Jodlowska, the PSF Executive Director, and Christopher Neugebauer, a current board member, on the show today. I've also got some great links in the show notes if we don't answer your questions and you want to find out more. Special Guests: Christopher Neugebauer and Ewa Jodlowska. Sponsored By:
Links: | |||
| 113: Technical Debt - James Smith | 15 May 2020 | 00:30:03 | |
Technical debt has to be dealt with on a regular basis to have a healthy product and development team. The impacts of technical debt include emotional drain on engineers and slowing down development and can adversely affect your hiring ability and retention. But really, what is technical debt? Can we measure it? How do we reduce it, and when? James Smith, the CEO of Bugsnag, joins the show to talk about technical debt and all of these questions. Special Guest: James Smith. Sponsored By: | |||
| 212: Canon TDD - by Kent Beck | 13 Jan 2024 | 00:07:31 | |
In 2002, Kent Beck released a book called "Test Driven Development by Example". Brian's commentary is saved for a followup episode. Links: Learn pytest
| |||
| 112: Six Principles of Readable Tests - David Seddon | 08 May 2020 | 00:45:03 | |
"Code is read much more often than it is written." - Guido van Rossum When you are trying to understand why a test is failing, you'll be very grateful to the test author if they've taken the care to make it readable. David Seddon came up with 6 principles to help us write more readable tests. David's 6 Principles of Readable Tests:
Special Guest: David Seddon. Sponsored By:
Links: | |||
| 111: Subtests in Python with unittest and pytest - Paul Ganssle | 02 May 2020 | 00:48:35 | |
In both unittest and pytest, when a test function hits a failing assert, the test stops and is marked as a failed test. What if you want to keep going, and check more things? There are a few ways. One of them is subtests. Python's unittest introduced subtests in Python 3.4.
pytest introduced support for subtests with changes in pytest 4.4 and a plugin, called pytest-subtests. But really, what are they? When could you use them? And more importantly, what should you watch out for if you decide to use them? That's what Paul Ganssle and I will be talking about today. Special Guest: Paul Ganssle. Sponsored By:
Links: | |||
| 110: Testing Django - from unittest to pytest - Adam Parkin | 25 Apr 2020 | 00:24:57 | |
Django supports testing out of the box with some cool extensions to unittest. However, many people are using pytest for their Django testing, mostly using the pytest-django plugin. Adam Parkin, who is known online as CodependentCodr, joins us to talk about migrating an existing Django project from unittest to pytest. Adam tells us just how easy this is. Special Guest: Adam Parkin. Sponsored By:
Links: | |||
| 109: Testing in Financial Services - Eric Bergemann | 14 Apr 2020 | 00:29:35 | |
Financial services have their own unique testing development challenges. But they also have lots of the same challenges as many other software projects. Eric Bergemann joins Brian Okken to discuss:
Special Guest: Eric Bergemann. Sponsored By:
Links: | |||
| 108: PySpark - Jonathan Rioux | 09 Apr 2020 | 00:32:02 | |
Apache Spark is a unified analytics engine for large-scale data processing. Johnathan Rioux, author of "PySpark in Action", joins the show and gives us a great introduction of Spark and PySpark to help us decide how to get started and decide whether or not to decide if Spark and PySpark are right you. Special Guest: Jonathan Rioux. Sponsored By:
Links: | |||
| 107: Property Based Testing in Python with Hypothesis - Alexander Hultnér | 27 Mar 2020 | 00:36:19 | |
Hypothesis is the Python tool used for property based testing. In this episode Alexander Hultnér introduces us to property based testing in Python with Hypothesis. Some topics covered:
Special Guest: Alexander Hultnér. Sponsored By:
Links:
| |||
| 106: Visual Testing : How IDEs can make software testing easier - Paul Everitt | 20 Mar 2020 | 00:49:59 | |
IDEs can help people with automated testing. In this episode, Paul Everitt and Brian discuss ways IDEs can encourage testing and make it easier for everyone, including beginners. We discuss features that exist and are great, as well as what is missing. The conversation also includes topics around being welcoming to new contributors for both open source and professional projects. We talk about a lot of topics, and it's a lot of fun. But it's also important. Because IDEs can make testing Some topics discussed:
Special Guest: Paul Everitt. Links: | |||
| 105: TAP: Test Anything Protocol - Matt Layman | 11 Mar 2020 | 00:30:14 | |
The Test Anything Protocol, or TAP, is a way to record test results in a language agnostic way, predates XML by about 10 years, and is still alive and kicking. Matt Layman has contributed to Python in many ways, including his educational newsletter, and his Django podcast, Django Riffs. Matt is also the maintainer of tap.py and pytest-tap, two tools that bring the Test Anything Protocol to Python. In this episode, Matt and I discuss TAP, it's history, his involvement, and some cool use cases for it. Special Guest: Matt Layman. Sponsored By:
Links: | |||
| 104: Top 28 pytest plugins - Anthony Sottile | 04 Mar 2020 | 00:47:14 | |
pytest is awesome by itself. pytest + plugins is even better. Some of the plugins discussed (we also mention a few plugins related to some on this list):
Honorable mention:
Special Guest: Anthony Sottile. Sponsored By:
Links: | |||
| 103: Django - Lacey Williams Henschel | 01 Mar 2020 | 00:27:18 | |
Django is without a doubt one of the most used web frameworks for Python. Lacey Williams Henschel is a Django consultant and has joined me to talk about Django, the Django community, and so much more. Topics:
Special Guest: Lacey Williams Henschel. Sponsored By:
Links: | |||
| 211: Stamp out test dependencies with pytest plugins | 15 Dec 2023 | 00:18:01 | |
We want to be able to run tests in a suite, and debug them in isolation, and have the behavior be the same. In this episode, we'll talk about:
Plugins discussed:
Learn pytest
| |||
| 102: Cosmic Python, TDD, testing and external dependencies - Harry Percival | 27 Feb 2020 | 00:41:45 | |
Harry Percival has completed his second book, "Architecture Patterns with Python". Topics
Links: | |||
| 101: Application Security - Anthony Shaw | 19 Feb 2020 | 00:46:17 | |
Application security is best designed into a system from the start. On today's Test & Code, Anthony and I discuss his security plugin, but also application security in general, as well as other security components you need to consider. Security is something every team needs to think about, whether you are a single person team, a small startup, or a large corporation. Anthony and I also discuss where to start if it's just a few of you, or even just one of you. Topics include:
Special Guest: Anthony Shaw. Sponsored By:
Links: | |||
| 100: A/B Testing - Leemay Nassery | 13 Feb 2020 | 00:36:31 | |
Let's say you have a web application and you want to make some changes to improve it. But really what is A/B testing? That's what we'll find out on this episode with Leemay Nassery. Special Guest: Leemay Nassery. Sponsored By: | |||
| 99: Software Maintenance and Chess | 30 Jan 2020 | 00:16:09 | |
I play a form of group chess that has some interesting analogies to software development and maintenance of existing systems. This episode explains group chess and explores a few of those analogies. Sponsored By: | |||
| 98: pytest-testmon - selects tests affected by changed files and methods - Tibor Arpas | 21 Jan 2020 | 00:32:59 | |
pytest-testmon is a pytest plugin which selects and executes only tests you need to run. It does this by collecting dependencies between tests and all executed code (internally using Coverage.py) and comparing the dependencies against changes. testmon updates its database on each test execution, so it works independently of version control. In this episode, I talk with testmon creator Tibor Arpas about testmon, about it's use and how it works. Special Guest: Tibor Arpas. Sponsored By:
Links: | |||
| 97: 2019 Retrospective, 2020 Plans, and an amazing decade | 31 Dec 2019 | 00:24:02 | |
This episode is not just a look back on 2019, and a look forward to 2020. top 10 episodes of 2019
Looking back on the last decade Looking forward to 2020 and beyond A closing quote
That's why I promote and teach automated testing. I hope you had an amazing decade. Sponsored By:
Links: | |||
| 96: Azure Pipelines - Thomas Eckert | 16 Dec 2019 | 00:26:10 | |
Pipelines are used a lot in software projects to automated much of the work around build, test, deployment and more. Thomas Eckert talks with me about pipelines, specifically Azure Pipelines. Some of the history, and how we can use pipelines for modern Python projects. Special Guest: Thomas Eckert. Sponsored By:
Links: | |||
| 95: Data Science Pipeline Testing with Great Expectations - Abe Gong | 30 Nov 2019 | 00:22:49 | |
Data science and machine learning are affecting more of our lives every day. Decisions based on data science and machine learning are heavily dependent on the quality of the data, and the quality of the data pipeline. Some of the software in the pipeline can be tested to some extent with traditional testing tools, like pytest. But what about the data? The data entering the pipeline, and at various stages along the pipeline, should be validated. That's where pipeline tests come in. Pipeline tests are applied to data. Pipeline tests help you guard against upstream data changes and monitor data quality. Abe Gong and Superconductive are building an open source project called Great Expectations. It's a tool to help you build pipeline tests. This is quite an interesting idea, and I hope it gains traction and takes off. Special Guest: Abe Gong. Sponsored By:
Links: | |||
| 94: The real 11 reasons I don't hire you - Charity Majors | 18 Nov 2019 | 00:34:26 | |
You've applied for a job, maybe lots of jobs.
If you get the job, and you enjoy the work, awesome, congratulations. If you don't get the job, it'd be really great to know why. Sometimes it isn't because you aren't a skilled engineer. What other reasons are there? Well, that's what we're talking about today. Charity Majors is the cofounder and CTO of Honeycomb.io, and we're going to talk about reasons for not hiring someone. This is a very informative episode both for people who job hunt in the future and for hiring managers and people on the interview team. Special Guest: Charity Majors. Sponsored By:
Links:
| |||
| 93: Software Testing, Book Writing, Teaching, Public Speaking, and PyCarolinas - Andy Knight | 31 Oct 2019 | 00:30:25 | |
Andy Knight is the Automation Panda. Andy Knight is passionate about software testing, and shares his passion through public speaking, writing on automationpanda.com, teaching as an adjunct professor, and now also through writing a book and organizing a new regional Python conference. Topics of this episode include:
Special Guest: Andy Knight. Sponsored By:
Links: | |||
| 210: TDD - Refactor while green | 30 Nov 2023 | 00:15:43 | |
Test Driven Development. Red, Green, Refactor.
This episode is to talk about this with a an example. Learn pytest
| |||
| 92: 9 Steps to Crater Quality & Destroy Customer Satisfaction - Cristian Medina | 20 Oct 2019 | 00:35:06 | |
Cristian Medina wrote an article recently called "Test Engineering Anti-Patterns: Destroy Your Customer Satisfaction and Crater Your Quality By Using These 9 Easy Organizational Practices" Of course, it's sarcastic, and aims to highlight many problems with organizational practices that reduce software quality. The article doesn't go out of character, and only promotes the anti-patterns. Here's the list of all the points discussed in the article and in this episode:
Special Guest: Cristian Medina. Sponsored By:
Links:
| |||
| 91: Python 3.8 - there's a lot more new than most people are talking about | 16 Oct 2019 | 00:21:01 | |
Python 3.8.0 final is live and ready to download. On todays episode, we're going to run through what's new, picking out the bits that I think are the most interesting and affect the most people, including
Not just the big stuff everyone's already talking about. But also some little things that will make programming Python even more fun and easy. I'm excited about Python 3.8. And really, this episode is to my way to try to get you excited about it too. Sponsored By:
Links: | |||
| 90: Dynamic Scope Fixtures in pytest 5.2 - Anthony Sottile | 11 Oct 2019 | 00:34:00 | |
pytest 5.2 was just released, and with it, a cool fun feature called dynamic scope fixtures. Anthony Sottile so tilly is one of the pytest core developers, so I thought it be fun to have Anthony describe this new feature for us. We also talk about parametrized testing and really what is fixture scope and then what is dynamic scope. Special Guest: Anthony Sottile. Sponsored By:
Links:
| |||
| 89: Improving Programming Education - Nicholas Tollervey | 28 Sep 2019 | 00:42:00 | |
Nicholas Tollervey is working toward better ways of teaching programming. His projects include the Mu Editor, PyperCard, and CodeGrades. Many of us talk about problems with software education. Nicholas is doing something about it. Special Guest: Nicholas Tollervey. Sponsored By:
Links:
| |||
| 88: Error Monitoring, Crash Reporting, Performance Monitoring - JD Trask | 21 Sep 2019 | 00:48:17 | |
Tools like error monitoring, crash reporting, and performance monitoring are tools to help you create a better user experience and are fast becoming crucial tools for web development and site reliability. But really what are they? And when do you need them? You've built a cool web app or service, and you want to make sure your customers have a great experience. You know I advocate for utilizing automated tests so you find bugs before your customers do. However, fast development lifecycles, and quickly reacting to customer needs is a good thing, and we all know that complete testing is not possible. That's why I firmly believe that site monitoring tools like logging, crash reporting, performance monitoring, etc are awesome for maintaining and improving user experience. John-Daniel Trask, JD, the CEO of Raygun, agreed to come on the show and let me ask all my questions about this whole field. Special Guest: John-Daniel Trask. Sponsored By: | |||
| 87: Paths to Parametrization - from one test to many | 11 Sep 2019 | 00:19:02 | |
There's a cool feature of pytest called parametrization. It's actually a handful of features, and there are a few ways to approach it. Super powerful, but something since there's a few approaches to it, a tad tricky to get the hang of. Sponsored By:
Links:
| |||
| 86: Teaching testing best practices with 4 testing maxims - Josh Peak | 06 Sep 2019 | 00:22:41 | |
You've incorporated software testing into your coding practices and know from experience that it helps you get your stuff done faster with less headache. Awesome. Now your colleagues want in on that super power and want to learn testing. How do you help them? That's where Josh Peak is. He's helping his team add testing to their workflow to boost their productivity. That's what we're talking about today on Test & Code. Josh walks us through 4 maxims of developing software tests that help grow your confidence and proficiency at test writing. Special Guest: Josh Peak. Sponsored By:
Links: | |||
| 85: Speed Up Test Suites - Niklas Meinzer | 26 Aug 2019 | 00:26:33 | |
Good software testing strategy is one of the best ways to save developer time and shorten software development delivery cycle time. Software test suites grow from small quick suites at the beginning of a project to larger suites as we add tests, and the time to run the suites grows with it. Fortunately, pytest has many tricks up it's sleave to help shorten those test suite times. Niklas Meinzer is a software developer that recentely wrote an article on optimizing test suites. In this episode, I talk with Niklas about the optimization techniques discussed in the article and how they can apply to just about any project. Special Guest: Niklas Meinzer. Sponsored By:
Links: | |||
| 84: CircuitPython - Scott Shawcroft | 20 Aug 2019 | 00:35:52 | |
Adafruit enables beginners to make amazing hardware/software projects. The combination of Python's ease of use and Adafruit's super cool hardware and a focus on a successful beginner experience makes learning to write code that controls hardware super fun. In this episode, Scott Shawcroft, the project lead, talks about the past, present, and future of CircuitPython, and discusses the focus on the beginner. We also discuss contributing to the project, testing CircuitPython, and many of the cool projects and hardware boards that can use CircuitPython, and Blinka, a library to allow you to use "CircuitPython APIs for non-CircuitPython versions of Python such as CPython on Linux and MicroPython," including Raspberry Pi. Special Guest: Scott Shawcroft. Sponsored By:
Links: | |||
| 83: PyBites Code Challenges behind the scenes - Bob Belderbos | 16 Aug 2019 | 00:24:04 | |
Bob Belderbos and Julian Sequeira started PyBites a few years ago. Then came the codechalleng.es platform, where you can do code challenges in the browser and have your answer checked by pytest tests. But how does it all work? Bob joins me today to go behind the scenes and share the tech stack running the PyBites Code Challenges platform. We talk about the technology, the testing, and how it went from a cool idea to a working platform. Special Guest: Bob Belderbos. Sponsored By:
Links: | |||
| 209: Testing argparse Applications | 16 Nov 2023 | 00:15:53 | |
How do you test the argument parsing bit of an application that uses argparse? This episode covers:
Also, there's a full writeup and code samples available:
Learn pytest
| |||
| 82: pytest - favorite features since 3.0 - Anthony Sottile | 31 Jul 2019 | 00:36:36 | |
Anthony Sottile is a pytest core contributor, as well as a maintainer and contributor to We also discuss Anthony's move from user to contributor, and how others can help with the pytest project. Special Guest: Anthony Sottile. Sponsored By:
Links: | |||
| 81: TDD with flit | 17 Jul 2019 | 00:25:21 | |
In the last episode, we talked about going from script to supported package. Today's episode is a continuation where we add new features to a supported package and how to develop and test a flit based package. Covered:
code and command snippets from episode: For git checkout of versions: $ git clone https://github.com/okken/submark.git $ cd submark $ python3 -m venv venv --prompt submark $ source ./bin/activate (submark) $ git checkout v0.1 ... etc ... (submark) $ git checkout v0.7To grab the latest again: (submark) $ git checkout masterpyproject.toml change for README to show up on pypi: [tool.flit.metadata] ... description-file = "README.md" ...Adding dev dependencies to pyproject.toml: [tool.flit.metadata.requires-extra] test = ["pytest", "pytest-cov", "tox"]Installing in editable mode (in top level repo directory). works in mac, linux, windows: (submark) $ flit install --pth-fileor for mac/linux: (submark) $ flit install -sSponsored By:
Links: | |||
| 80: From Python script to Maintainable Package | 04 Jul 2019 | 00:21:52 | |
This episode is a story about packaging, and flit, tox, pytest, and coverage. Python makes it easy to build simple tools for all kinds of tasks. When you want to take a script from "just a script" to maintainable package, there are a few steps, but none of it's hard. Also, the structure of the code layout changes to help with the growth and support. Instead of just talking about this from memory, I thought it'd be fun to create a new project and walk through the steps, and report back in a kind of time lapse episode. It should be fun. Here are the steps we walk through:
Sponsored By:
Links: | |||