-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
stdout and stderr not compatible with Jenkins #59
Comments
Original comment by Brian O'Neill (BitBucket: sfbrian, GitHub: sfbrian): Here is an example of Jenkins using stdout. We made a hack to put all the stdout and stderr into Jenkins' stdout to get a quick fix: https://skitch.com/boneill428/fj8q2/stdout Our hack was: sed -i -e 's###g' |
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): could you verify it works for you by installing: pip install -i http://pypi.testrun.org -U pytest ? should give you pytest-2.1.1.dev2 at least (see py.test -v) and better xml files. I wasn't 100% sure how the xml format looks like - if there are issues, please provide an exmaple xml file. thanks, |
Original comment by Brian O'Neill (BitBucket: sfbrian, GitHub: sfbrian): Thanks for the fix Holger. One minor change is needed. The format should be: }}} Currently the format is wrapped in the failure tag instead at the same level as failure:
Example: {{{
> exit() general.py:84: self = Use exit() or Ctrl-D (i.e. EOF) to exit, code = None
> raise SystemExit(code) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.py:334: SystemExit }}} |
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): thanks, i think i fixed it. See "pip install -i http://pypi.testrun.org -U pytest" (version dev3 now) |
Originally reported by: Anonymous
When using the junitxml flag, it outputs all the traceback, stderr and stdout into Jenkins' stacktrace. The stderr and stdout should be put into and respectively instead of everything in . This will make the xml output more compatible with Jenkins and plugins.
The text was updated successfully, but these errors were encountered: