[TIP] new discovery.py - q&a???

Doug Philips dgou at mac.com
Mon May 4 09:45:23 PDT 2009

Announced on twitter, but seems fair game here. :)
voidspace All new implementation of test discovery for unittest. This time in a loader. Good start I think. :-) http://twurl.nl/nz8f4y

Overall I would say it looks pretty nice.
A few questions/confusions...
Comments indicate some concern about the calling signature discrepancies with 'load_tests' in a module vs. in a package. Function overloading is a pain in Python. But I was confused not by the calling signature, but by the use. In a module context, 'load_tests' is really a filtery kind of thing where as in a module context it is only a filter by a stretch of filtering nothingness into a sequence of tests. :)

I was also a little bit surprised to find that will all the optional parameters flying around everywhere, that TextTestRunner would hard coded. Not sure that it bothers me given the context, but found it odd.


More information about the testing-in-python mailing list