unittest is the first (and only) testing framework I have ever used, so any info is appreciated.

Yes, I like Pytest a lot more. 

I should really write this up someday, and I did write a bit about it on this list not too long ago.

So the really short version is:

Unittest requires a fair bit of boilerplate that adds no real functionality. 

The assert* methods are only there to provide error reporting that can be done by introspection by the test runner (e.g. pytest)

It’s missing some really key features like paramatrized tests. 

Give Pytest a try — I suspect you’ll like it. 

Note that a LOT of major projects dumped unittest years ago— first for nose and now usually pytest. No one uses a third party library for no reason :-)


Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython