This is the transcript for Test & Code, episode 19: Python unittest with Robert Collins.
This is the transcript for Test and Code Podcast episode 2
Hello everyone. My name is Brian Okken. Welcome to the Python Test Podcast (Now called “Test & Code”).
Today I want to talk about choosing a test framework. When I went to look at the different frameworks, I noticed that unittest and doctest are part of the standard library, but nose and pytest were used quite a bit also, so I figured those four were good things to look into. Really what I was looking for was not a unittest framework, but a functional test framework. They are really the same thing. I didn’t know if it was complete list so I put a post up on my website with a poll asking other people if they were interested in those, and if there is Read the rest of the transcript
Interview with Robert Collins, current core maintainer of Python’s unittest module.
Some of the topics covered
- How did Robert become the maintainer of unittest?
- unittest2 as a rolling backport of unittest
- test and class parametrization with subtest and testscenarios
- Which extension to unittest most closely resembles Pytest fixtures?
- Comparing Pytest and unittest
- Will unittest ever get assert rewriting?
- Future changes to unittest
I’ve been re-studying unittest recently and I mostly wanted to ask Robert a bunch of clarifying questions.
This is an intermediate to advanced discussion of unittest.
Many great features of unittest go by quickly in this talk.
Please let me know if there’s something you’d like me to cover in more depth as a blog post or a future episode.
- TIP (testing in python) mailing list
Special thanks to my wonderful Patreon supporters.
I’m especially excited about it because I have two articles featured.
I mostly know Michael from the many years of reading Dr Dobb’s.
And I respect Pragmatic Bookshelf for their work in technical publishing.
So I was thrilled to be asked to contribute.
From the Contents page:
The test of the seriousness of any programming project is the seriousness of its testing.
This month Brian Okken takes us on a tour of testing in Python with two articles.
First he works through some of the factors you need to weigh in choosing a test framework for Python.
Then he shows the advantages of one approach to testing in Python, drawn from Behavior-Driven Development.
There looks like lots of other great articles in there too.