[TIP] Test discovery for unittest
Michael Foord
fuzzyman at voidspace.org.uk
Sat Apr 4 16:11:49 PDT 2009
Michael Foord wrote:
> Robert Collins wrote:
>
>> On Sat, 2009-04-04 at 04:02 +0100, Michael Foord wrote:
>>
>>
>>
>>> Thanks - I should look at using a test loader rather than importing the
>>> modules and pulling out the test cases myself.
>>>
>>>
>> Done, attached.
>>
>> -Rob
>>
>>
> Ha - good timing. I'd *just* committed a change to use the test loader -
> basically using the same technique as you without the DiscoveringTestSuite.
>
> http://code.google.com/p/unittest-ext/source/browse/trunk/discovery.py
>
> Would be interested in which approach people prefer and what else should
> be done before putting into unittest (integrating with unittest -m
> command line args is the most important thing IMO).
>
> Michael
>
>
Having a DiscoveringTestSuite would allow people to use it with a custom
test runner. I like it.
Michael
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the testing-in-python
mailing list