DiscoverTest & Code - Python Testing & Development
Test & Code - Python Testing & Development
Claim Ownership

Test & Code - Python Testing & Development

Author: Brian Okken

Subscribed: 2,314Played: 29,246


Test & Code is a weekly podcast hosted by Brian Okken.
The show covers a wide array of topics including software engineering, development, testing, Python programming, and many related topics.
When we get into the implementation specifics, that's usually Python, such as Python packaging, tox, pytest, and unittest. However, well over half of the topics are language agnostic, such as data science, DevOps, TDD, public speaking, mentoring, feature testing, NoSQL databases, end to end testing, automation, continuous integration, development methods, Selenium, the testing pyramid, and DevOps.
90 Episodes
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.
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.
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.
There's a cool feature of pytest called parametrization.It's totally one of the superpowers of pytest.It's actually a handful of features, and there are a few ways to approach it.Parametrization is the ability to take one test, and send lots of different input datasets into the code under test, and maybe even have different output checks, all within the same test that you developed in the simple test case.Super powerful, but something since there's a few approaches to it, a tad tricky to get the hang of.
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.
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.
Adafruit enables beginners to make amazing hardware/software projects.With CircuitPython, these projects can now use Python.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.
Bob Belderbos and Julian Sequeira started PyBites ( a few years ago.They started doing code challanges along with people around the world and writing about it. Then came the ( 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.
Anthony Sottile is a pytest core contributor, as well as a maintainer and contributor to many other projects. In this episode, Anthony shares some of the super cool features of pytest that have been added since he started using it.We also discuss Anthony's move from user to contributor, and how others can help with the pytest project. Special Guest: Anthony Sottile.
81: TDD with flit

81: TDD with flit


In the last episode, we talked about going from script to supported package. I worked on a project called subark and did the packaging with flit.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:viewing stages of a project with git tagsflit support for editable installsflit description entry in pyproject.toml to put README on pypi.development dependencies in pyproject.tomleditor layout for optimal TDD-ingtest case groupingmodifications to traditional TDD that helps me develop faster.code and command snippets from episode:For git checkout of versions:$ git clone$ 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 = ""...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 -s
Download from Google Play
Download from App Store