-
-
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
Generating junitxml report with stdout missing #6945
Comments
Well, here is the change: #6469 |
How can we turn on --junit_logging=all by command line? |
-o junit_logging=all |
Are you getting system-out now? |
yes thank you |
Hello here! Sorry to revisit an old post, I'm running into the exact same issue but with different version of pytest. I'm currently running pytest version 8.1.1, and whatever the configuration I try, I'm not getting any output from the tests into my JUnit XML files...
I tried creating a brand new project using only pytest:
./feature1/test_feature1.py
Running it with the command I only get the following XML file:
I also tried removing the Any idea? Am I missing anything? Brice |
please open a new issue with more details, resurrecting 4 year old issues for new support requests is bad |
Sorry, I'm always concerned as on most forums we're asked not te replicate topics ;) |
Description
Pytest fails to generate junitxml report with captured
stdout
after pytest 5.4.0.pip list
pytest and operating system versions
pytest 5.4.1
Ubuntu 19.10
Example
Content of
test_junit.py
:Let's run the test:
pytest test_junit.py -v --junitxml result.xml
Content of
result.xml
:If I run the same test with pytest 5.3.5, the result contains stdout:
The text was updated successfully, but these errors were encountered: