[TIP] cleanUp for unittest

Michael Foord fuzzyman at voidspace.org.uk
Fri Apr 3 13:03:29 PDT 2009


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).

All the best,

Michael Foord

-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog





More information about the testing-in-python mailing list