[TIP] About support for warnings in TestCase [WAS] Determine test status in tearDown method

Robert Collins robertc at robertcollins.net
Wed Oct 21 13:56:21 PDT 2009


On Wed, 2009-10-21 at 09:32 -0500, Olemis Lang wrote:
> 
> I had to extend TestRunner and TestResult in order to do that and ,
> since TCs having warnings are reported as successful TCs , I also had
> to override `addSuccess` (and probably something inside TestRunner ;o)
> in order to replace `ok` label by `WARNINGS` label. You get more or
> less verbose output (i.e. warning details) using the usual options in
> `unittest` mdl

We really need to fold all the reporting of TestRunner into
TextTestResult and make that public.

Olemis, I'd like it if you can think about how you would be able to do
that if my major conceptual bugs are fixed in unittest - so that you
could do this sort of extensions *and have it work with other test
results*.

-Rob
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20091022/e8db65fd/attachment.pgp>


More information about the testing-in-python mailing list