[TIP] Test discovery for unittest
Michael Foord
fuzzyman at voidspace.org.uk
Fri Apr 3 20:02:27 PDT 2009
Ben Finney wrote:
> Michael Foord <fuzzyman at voidspace.org.uk> writes:
>
>
>> For those who might be interested I've been playing with test
>> discovery for unittest. I have a simple working prototype in about
>> 80'ish lines of code.
>>
>> http://code.google.com/p/unittest-ext/source/browse/trunk/discovery.py
>>
>> I'll be using this sandbox to turn unittest into a package as well.
>>
>
> Feel free to plunder my own attempt at this:
>
> <URL:http://bitbucket.org/bignose/python-lockfile/src/tip/tests/__init__.py>
> <URL:http://bitbucket.org/bignose/python-lockfile/src/tip/tests/scaffold.py>
>
> in particular the ‘make_suite’ and related functions.
>
> All licensed under the PSF-2 license or any later version.
>
>
Thanks - I should look at using a test loader rather than importing the
modules and pulling out the test cases myself.
Michael
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the testing-in-python
mailing list