Extra Unittest Information
Robert Kern
robert.kern at gmail.com
Wed Sep 13 08:44:45 EDT 2006
Calvin Spealman wrote:
> This is something I have been wanting to find for a while, but i
> haven't figured out. I really would love to know if there is some way
> I can report extra information while running unittests, and have that
> information appear along with the tracebacks, so its near the relevent
> test's results.
Several test runners (py.test, testoob, nose) will trap stdout and stderr and
only display them if that test fails. Then you can simply use print statements
in your test methods.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list