> 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 :-)

-CHB


-- 
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/E4F6ATUGD3TLBULMBXSIKRDXX65KCMR6/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to