Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captured test output not being output on failure #46

Open
PeterJCLaw opened this issue Jan 11, 2014 · 0 comments
Open

Captured test output not being output on failure #46

PeterJCLaw opened this issue Jan 11, 2014 · 0 comments

Comments

@PeterJCLaw
Copy link

If you have a simple nose test:

def test_nothing():
   print 'some debug message'
   fail()

then when running this with nose, you get:

$ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant