$ nosetests
<snip>
NameError: global name 'fail' is not defined
-------------------- >> begin captured stdout << ---------------------
bacon
--------------------- >> end captured stdout << ----------------------
<snip>
FAILED (errors=1)
However, if you have --with-freshen enabled the lines containing the captured standard out never appear, either for code run as part of a freshen test, or even just as part of standard nose tests.
This makes debugging the failing tests substantially harder, as it's much harder to see why they fail.
Disabling output capture with --nocapture does allow the output to appear, but removes the beneficial grouping of it by test case that would otherwise be had.
If you have a simple nose test:
then when running this with nose, you get:
However, if you have
--with-freshen
enabled the lines containing the captured standard out never appear, either for code run as part of a freshen test, or even just as part of standard nose tests.This makes debugging the failing tests substantially harder, as it's much harder to see why they fail. Disabling output capture with
--nocapture
does allow the output to appear, but removes the beneficial grouping of it by test case that would otherwise be had.