[TIP] Determine test status in tearDown method
olemis at gmail.com
Tue Oct 20 14:34:44 PDT 2009
On Tue, Oct 20, 2009 at 4:18 PM, Robert Collins
<robertc at robertcollins.net> wrote:
> On Tue, 2009-10-20 at 09:28 -0700, Jesse Thompson wrote:
>> I'm having a difficult time figuring out how to determine a test's
>> status from the tearDown method, do any of you know how I might go
>> about doing so?
>> Example: While running a test some unhandled exception is thrown,
>> which causes the test to fail, I would like to know about it in the
>> tearDown method. Or if a test fails due to an assertion failure, I
>> would still like to know about it in tearDown so that I can attach
>> some extra logging information to the test's failure output.
> This is the sort of case I have in mind with my changes I'm calling for
> I have a draft of an API to add logging data to the failure output, but
> haven't yet drafted the API for test writers to provide that data.
I think something like this would be awesome, especially for only
services and hosted apps (e.g. in the cloud ;o)
... but I don't see the relationship with the original question
Following tomorrow !
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Looking for a technique to create flexible, graphical dashboards ...
More information about the testing-in-python