[TIP] cleanUp for unittest

Olemis Lang olemis at gmail.com
Fri Apr 3 13:23:18 PDT 2009

On Fri, Apr 3, 2009 at 3:03 PM, Michael Foord <fuzzyman at voidspace.org.uk> wrote:
> o  Lang wrote:
>> [...]
>> For example other useful use cases really included in XUnit framews are :
>> - Test decorators ...
>> - Warning support for test cases ... and even in this case AFAIK they
>> are implemented usig Test Decorators ... e.g. this is the way I did it
>> for the test suite of the FLiOOPS project ...
>> I think we should have more of these instead of modifying
>> unittest.TestCase for this feature ... this is IMHO ... Perhaps there
>> is a *better* (... this is IMO ;) non invasive solution using
>> subclasses and|or test decorators or something else outside TestCase
>> class ...
> Totally new subject - could you elaborate on what is meant by test
> decorators, what they do and how they do it (usage rather than
> implementation).

TestDecorators are there in JUnit ... so explianing that would be
duplicated effort and time I dont have ... however in a separate
thread I'll try to explain the use cases I have found for
TestDecorators  ... while testing things in the project I was talking
about ... ;)

there is even a test decorator in dutest itself ... PackageTestLoader ... ;)



Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

More information about the testing-in-python mailing list