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

Olemis Lang olemis at gmail.com
Thu Oct 22 09:45:41 PDT 2009


On Wed, Oct 21, 2009 at 3:56 PM, Robert Collins
<robertc at robertcollins.net> wrote:
> 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*.
>

Well the only thing I can say so far is that a couple of colleagues
and me implemented all this about 4 or 5 years ago . I replied in a
separate message, since the subject is just broader than «just
warnings» . Please, let's follow that one for the abstract discussion,
and let's include in this one what is related to «warnings» and integ
with existing modules I mentioned before .

;o)

-- 
Regards,

Olemis.

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

Featured article:
Looking for a technique to create flexible, graphical dashboards ...
- http://feedproxy.google.com/~r/TracGViz-full/~3/QO5N8AG0NnM/d6e3b3fd323d5b52



More information about the testing-in-python mailing list