
Sign up to save your podcasts
Or


How do you test installed packages using coverage.py?
Also, a couple followups from last week's episode on using coverage for single file applications.
Links:
Have you ever written a single file Python application or script?
Have you written tests for it?
Do you check code coverage?
This is the topic of this weeks episode, spurred on by a listener question.
The questions:
The example code discussed in the episode: script.py
def foo():Suggestion by @cfbolz if you need to import pytest:
if __name__ == '__main__': # pragma: no coverBuilding any software, including web apps and APIs requires testing.
There's automated testing, and there's manual testing.
In between that is exploratory testing aided by automation tools.
Michael Kennedy joins the show this week to share some of the tools he uses during development and maintenance.
We talk about tools used for semi-automated exploratory testing.
We also talk about some of the other tools and techniques he uses to keep Talk Python Training, Talk Python, and Python Bytes all up and running smoothly.
We talk about:
Links:
A discussion about mocking in Python with the original contributor of unittest.mock, Michael Foord.
Of course we discuss mocking and unittest.mock.
We also discuss:
Micheal was instrumental in the building of testing tools for Python, and continues to be a pragmatic source of honest testing philosopy in a field that has a lot of contradictory information.
Links:
Test Driven Development, TDD, is not easy to incorporate in your daily development.
Martin and Brian discuss TDD and testing and Martin's experience with testing, TDD, and using it for code involved with scientific research.
We discuss lots of topics around this, including:
Special Guest: Martin Héroux.
Links:
Completely nerding out about pytest markers with Anthony Sottile.
Some of what we talk about:
Links:
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.
Special Guest: Mark Smith.
Links:
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:
Also discussed:
Links:
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 code?
Martin works in research and this discussion is about software and testing in scientific research and academia.
Special Guest: Martin Héroux.
Links:
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.
Special Guests: Nalin Parbhu and Ola Omiyale.
From the publisher's feed

43,853 Listeners

623 Listeners

327 Listeners

582 Listeners

213 Listeners

8,059 Listeners

139 Listeners

2,313 Listeners

5 Listeners