[py-dev] Thanks a lot for py.test!

François Pinard pinard at iro.umontreal.ca
Sun Oct 16 16:15:26 CEST 2005


Hi, people.  I just wanted to share my enthusiasm for py.test.

In a relatively short amount of time, I wrote a lot of tests (1122 so
far) for the big project keeping me busy in these days.  With careful
thinking and much using generators, it is very easy to lie tests down
cleanly and quickly, in a progressive way, just as a way to crystallise
my understanding of the project as it develops, making it more solid.

For a few cases, test functions are more convenient and leaner than test
methods, while in other cases, it is more natural grouping tests within
test classes.  Whenever needed, setup and teardown helpers are sometimes
better written at module level, sometimes at class level (I had not
use for method level so far).  As I test on different machines and
locations, the disabling feature is rather useful to cope with various
limitations, like firewalls and such.  When I have some need to express,
py.test offers a nice, simple, clean, fast way.  It's pure pleasure! :-)

And I did not even study nor use the parts of the documentation about
implementation or customization -- maybe I'm not sophisticated enough
yet for needing them :-) -- but in any case, it leaves me with the good
feeling that there is loose power available if I ever need more.

All in all, it seems that one can do lots, by using nothing more than
the simpler parts of py.test.  It's much comforting.  Thanks, gang!

-- 
François Pinard   http://pinard.progiciels-bpi.ca



More information about the Pytest-dev mailing list