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

result log to include stdout\err #116

Closed
pytestbot opened this issue Jan 29, 2012 · 3 comments
Closed

result log to include stdout\err #116

pytestbot opened this issue Jan 29, 2012 · 3 comments
Labels
type: enhancement new feature or API change, should be merged into features branch

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Anonymous


Currently, if one writes a test similar to:

def test_foo():
print 'error!!!'
raise Exception()

and runs it with
py.test --resultlog=res.txt

the results file doesn't include the string error written to stdout.

Thank you very much!
py.test is a great product


@pytestbot
Copy link
Contributor Author

Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt):


its not clear how to extend the format in a backward compatible way

however the junitxml output already includes stdout/stderr

@pytestbot
Copy link
Contributor Author

Original comment by Armin Rigo (BitBucket: arigo, GitHub: arigo):


Just did it for the pytest included in PyPy: https://bitbucket.org/pypy/pypy/commits/768f274ab83b9f01d5d3a8461120215a20caa5f4

@nicoddemus
Copy link
Member

Related to #830.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement new feature or API change, should be merged into features branch
Projects
None yet
Development

No branches or pull requests

3 participants