Test & Code - podcast cover

Test & Code

Brian Okkentestandcode.com
The Python Test Podcast hosted by Brian Okken
Download Metacast podcast app
Podcasts are better in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episodes

143: pytest markers - Anthony Sottile

Completely nerding out about pytest markers with Anthony Sottile. Some of what we talk about: Running a subset of tests with markers. Using marker expressions with and, or, not, and parentheses. Keyword expressions also can use and, or, not, and parentheses. Markers and pytest functionality that use mark, such as parametrize, skipif, etc. Accessing markers with itermarkers and get_closest_marker through item. Passing values, metadata through markers to fixtures or hook functions. Links: Register...

Feb 07, 202140 minSeason 1Ep. 143

142: MongoDB - Mark Smith

MongoDB is possibly the most recognizable NoSQL document database. Mark Smith, a developer advocate for MongoDB, answers my many questions about MongoDB. We cover some basics, but also discuss some advanced features that I never knew about before this conversation. Full Transcript Special Guest: Mark Smith. Sponsored By: PyCharm Professional : Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22 Links: MongoDB Everything You Know About MongoDB is Wrong...

Jan 25, 202135 minSeason 1Ep. 142

141: Visual Testing - Angie Jones

Visual Testing has come a long way from the early days of x,y mouse clicks and pixel comparisons. Angie Jones joins the show to discuss how modern visual testing tools work and how to incorporate visual testing into a complete testing strategy. Some of the discussion: Classes of visual testing: problems with pixel to pixel testing DOM comparisons, css, html, etc. AI driven picture level testing, where failures look into the DOM to help describe the problem. Where visual testing fits into a test ...

Dec 30, 202031 minSeason 1Ep. 141

140: Testing in Scientific Research and Academia - Martin Héroux

Scientists learn programming as they need it. Some of them learn it in college, but even if they do, that's not their focus. It's not surprising that sharing the software used for scientific research and papers is spotty, at best. And what about testing? We'd hope that the software behind scientific research is tested. But why would we expect that? We're lucky if CS students get a class or two that even mentions automated tests. Why would we expect other scientists to just know how to test their...

Dec 18, 202048 minSeason 1Ep. 140

139: Test Automation: Shifting Testing Throughout the Software Lifecycle - Nalin Parbhu

Talking with Nalin Parbhu about the software evolution towards more test automation and the creation of Infuse and useMango. We talk a software development and "shift left" where automated tests and quality checks have moved earlier into the software lifecycle. Software approaches and where quality fits in Shift left Test automation Roles of software developers, SDETs (software development engineer in test), testers, QA, etc. Developers doing testing and devops Automated testing vs manual testin...

Dec 04, 202037 minSeason 1Ep. 139

138: Mutation Testing in Python with mutmut - Anders Hovmöller

Your test suite tells you about the quality of your code under test. Mutation testing is a way to tell you about the quality of your test suite. Anders Hovmöller wrote mutmut for mutation testing in Python, and can be used with pytest, unittest, and others. In this episode, Anders explains mutation testing, how mutation testing with mutmut works, and good workflows. Special Guest: Anders Hovmöller. Sponsored By: Electronic Specifier Insights : Podcast with reviews from electronics shows and late...

Nov 19, 202030 minSeason 1Ep. 138

137: Become an Author - Matt Harrison interviews Brian Okken

Matt Harrison, author of many Python books, is putting together a course, Effective Book Authoring, to help other people write and publish books. As part of this course, he's including interviews with people who have already written books, including me. This is that interview. We discuss: Why I wrote "Python Testing with pytest" Self publishing vs working with a publisher The writing, editing, and publishing process Writing format Book promotion Advice to other writers Special Guest: Matt Harris...

Nov 05, 202041 minSeason 1Ep. 137

136: Wearable Technology - Sophy Wong

Wearable technology is not just smart consumer devices like watches and activity trackers. Wearable tech also includes one off projects by designers, makers, and hackers and there are more and more people producing tutorials on how to get started. Wearable tech is also a great way to get both kids and adults excited about coding, electronics, and in general, engineering skills. Sophy Wong is a designer who makes really cool stuff using code, technology, costuming, soldering, and even jewelry tec...

Oct 26, 202032 minSeason 1Ep. 136

135: Speeding up Django Test Suites - Adam Johnson

All test suites start fast. But as you grow your set of tests, each test adds a little bit of time to the suite. What can you do about it to keep test suites fast? Some things, like parallelization, are applicable to many domains. What about, for instance, Django applications? Well, Adam Johnson has thought about it a lot, and is here to tell us how we can speed up our Django test suites. Topics include: parallelizing tests moving from disk to memory using fake data and factory functions targete...

Oct 20, 202024 minSeason 1Ep. 135

134: Business Outcomes and Software Development - Benjamin Harding

Within software projects, there are lots of metrics we could measure. But which ones really matter. Instead of a list, Benjamin Harding shares with us a way of thinking about business outcomes that can help us with every day decision making. We talk about: Business outcomes vs vanity metrics As a developer, how do you keep business outcomes in mind Thinking about customer value all the time Communicating decisions and options in terms of costs and impact on business outcomes Company culture and ...

Oct 12, 202032 minSeason 1Ep. 134

133: Major League Hacking - Jon Gottfried

Hackathons have been spreading around the world; many at university campuses. Major League Hacking, MLH, has been encouraging and helping hackathons. Hacking can be thought of as tinkering. Taking things apart and putting them back together as an interesting experience. There's always been some of this as part of software culture. The people at Major League Hacking have taken this to a whole new level, bringing together Tech creators who enjoy playing around with and crating new technology, on c...

Oct 05, 202029 minSeason 1Ep. 133

132: mocking in Python - Anna-Lena Popkes

Using mock objects during testing in Python. Anna-Lena joins the podcast to teach us about mocks and using unittest.mock objects during testing. We discuss: the different styles of using mocks pros and cons of mocks dependency injection adapter pattern mock hell magical universe and much more Special Guest: Anna-Lena Popkes. Sponsored By: Talk Python Training : Online video courses for Python developers PyCharm Professional : Try PyCharm Pro for 4 months and learn how PyCharm will save you time....

Sep 28, 202041 minSeason 1Ep. 132

131: Test Smarter, Not Harder

Some people avoid writing tests. Some drudge through it painfully. There is a better way. In this episode, I'm going to share some advice from Luke Plant on how to "Test Smarter, Not Harder" . Sponsored By: Talk Python Training : Online video courses for Python developers Datadog : Modern monitoring & security. See inside any stack, any app, at any scale, anywhere. Visit testandcode.com/datadog to get started. Links: Test smarter, not harder - lukeplant.me.uk — The original article by Luke ★...

Sep 21, 20209 minSeason 1Ep. 131

130: virtualenv activation prompt consistency across shells - an open source dev and test adventure - Brian Skinn

virtualenv supports six shells: bash, csh, fish, xonsh, cmd, posh. Each handles prompts slightly differently. Although the virtualenv custom prompt behavior should be the same across shells, Brian Skinn noticed inconsistencies. He set out to fix those inconsistencies. That was the start of an adventure in open source collaboration, shell prompt internals, difficult test problems, and continuous integration quirks. Brian Skinn initially noticed that on Windows cmd, a space was added between a pre...

Sep 13, 202036 minSeason 1Ep. 130

129: How to Test Anything - David Lord

I asked people on twitter to fill in "How do I test _____?" to find out what people want to know how to test. Lots of responses. David Lord agreed to answer them with me. In the process, we come up with lots of great general advice on how to test just about anything. Specific Questions people asked: What makes a good test? How do you test web app performance? How do you test cookie cutter templates? How do I test my test framework? How do I test permission management? How do I test SQLAlchemy mo...

Sep 07, 202042 minSeason 1Ep. 129

128: pytest-randomly - Adam Johnson

Software tests should be order independent. That means you should be able to run them in any order or run them in isolation and get the same result. However, system state often gets in the way and order dependence can creep into a test suite. One way to fight against order dependence is to randomize test order, and with pytest, we recommend the plugin pytest-randomly to do that for you. The developer that started pytest-randomly and continues to support it is Adam Johnson, who joins us today to ...

Aug 28, 202018 minSeason 1Ep. 128

127: WFH, WTF? - Tips and Tricks for Working From Home - Reuven Lerner & Julian Sequeira

Many people have been working from home now that are not used to working from home. Or at least are working from home more than they ever did before. That's definitely true for me. Even though I've been working from home since March, I wanted some tips from people who have been doing it longer. Julian Sequeira, of PyBites fame, has been working from home for about a year. Reuven Lerner, an amazing Python trainer, has been working from home for much longer. We originally had a big list of WFH top...

Aug 24, 202042 minSeason 1Ep. 127

126: Data Science and Software Engineering Practices ( and Fizz Buzz ) - Joel Grus

Researches and others using data science and software need to follow solid software engineering practices. This is a message that Joel Grus has been promoting for some time. Joel joins the show this week to talk about data science, software engineering, and even Fizz Buzz. Topics include: Software Engineering practices and data science Difficulties with Jupyter notebooks Code reviews on experiment code Unit tests on experiment code Finding bugs before doing experiments Tests for data pipelines T...

Aug 17, 202032 minSeason 1Ep. 126

125: pytest 6 - Anthony Sottile

pytest 6 is out. Specifically, 6.0.1, as of July 31. And there's lots to be excited about. Anthony Sottile joins the show to discuss features, improvements, documentation updates and more. Full release notes / changelog Some of what we talk about: How to update (at least, how I do it) Run your test suites with 5.4.3 or whatever the last version you were using Update to 6 Run again. Same output? Probably good. If there are any warnings, maybe fix those. You can also run with pytest -W error to tu...

Aug 07, 20201 hrSeason 1Ep. 125

124: pip dependency resolver changes

pip is the package installer for Python. Often, when you run pip, especially the first time in a new virtual environment, you will see something like: WARNING: You are using pip version 20.1.1; however, version 20.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. And you should. Because 20.2 has a new dependency resolver. Get in the habit, until October, of replacing pip install with pip install --use-feature=2020-resolver. This flag is new in t...

Aug 03, 202044 minSeason 1Ep. 124

123: GitHub Actions - Tania Allard

Lots of Python projects are starting to use GitHub Actions for Continous Integration & Deployment (CI/CD), as well as other workflows. Tania Allard, a Senior Cloud Developer Advocate at Microsoft, joins the show to answer some of my questions regarding setting up a Python project to use Actions. Some of the topics covered: How to get started with GitHub Actions for a Python project? What are workflow files? Does it matter what the file name is called? Can I have / Should I have more than one...

Jul 24, 202023 minSeason 1Ep. 123

122: Better Resumes for Software Engineers - Randall Kanna

A great resume is key to landing a great software job. There's no surprise there. But so many people make mistakes on their resume that can very easily be fixed. 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: PyCharm Professional : Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22 Links: The Standout Developer — link includes d...

Jul 16, 202036 minSeason 1Ep. 122

121: Industrial 3D Printing & Python, Finite State Machines, and Simulating Hardware - Len Wanger

Len Wanger works on industrial 3D printers. And I was pleased to find out that there's a bunch of Python in those printers as well. In this episode we talk about: 3D printers What are the different types of 3D printers? Where are 3D printed industrial parts being used? Why use one type of additive manufacturing over another? Python in 3D printing hardware. What are Finite State Machines, FSMs? Benefits of FSMs for testing, logging, and breaking a complex behavior into small testable parts. Benef...

Jul 10, 202049 minSeason 1Ep. 121

120: FastAPI & Typer - Sebastián Ramírez

FastAPI is a modern, fast (high-performance), web framework for building APIs with Python based on standard Python type hints. Typer is a library for building CLI applications, also based on Python type hints. Type hints and many other details are intended to make it easier to develop, test, and debug applications using FastAPI and Typer. The person behind FastAPI and Typer is Sebastián Ramírez. Sebastián is on the show today, and we discuss: FastAPI Rest APIs Swagger UI Future features of FastA...

Jul 03, 202044 minSeason 1Ep. 120

119: Editable Python Installs, Packaging Standardization, and pyproject.toml - Brett Cannon

There's stuff going on in Python packaging and pyproject.toml. Brett and I talk about some upcoming work on Python packaging, such as: editable installs the need for standardization configuration of other tools in pyproject.toml And then get off on tangents and talk about: why it's good to have packages like pip, toml, setuptools, wheel, etc not part of the standard library should we remove some stuff from the standard library the standard library using unittest for testing the standard library ...

Jun 26, 202036 minSeason 1Ep. 119

118: Code Coverage and 100% Coverage

Code Coverage or Test Coverage is a way to measure what lines of code and branches in your code that are utilized during testing. Coverage tools are an important part of software engineering. But there's also lots of different opinions about using it. Should you try for 100% coverage? What code can and should you exclude? What about targets? I've been asked many times what I think about code coverage or test coverage. This episode is a train of thought brain dump on what I think about code cover...

Jun 26, 202043 minSeason 1Ep. 118

117: Python extension for VS Code - Brett Cannon

The Python extension for VS Code is most downloaded extension for VS Code. Brett Cannon is the manager for the distributed development team of the Python extension for VS Code. In this episode, Brett and I discuss the Python extension and VS Code, including: pytest support virtual environment support how settings work, including user and workspace settings multi root projects testing Python in VS Code debugging and pydevd jump to cursor feature upcoming features Special Guest: Brett Cannon. Spon...

Jun 18, 202051 minSeason 1Ep. 117

116: 15 amazing pytest plugins - Michael Kennedy

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: pytest-sugar pytest-cov pytest-stress pytest-repeat pytes...

Jun 08, 202051 minSeason 1Ep. 116

115: Catching up with Nina Zakharenko

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 o...

May 30, 202042 minSeason 1Ep. 115

114: The Python Software Foundation (PSF) Board Elections - Ewa Jodlowska / Christopher Neugebauer

"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 ...

May 24, 202031 minSeason 1Ep. 114
Hosted on Transistor
For the best experience, listen in Metacast app for iOS or Android
Open in Metacast