Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
junit-xml: add option for disabling logs for passed tests #4559
We have near 130k tests for some web-API, and in these tests we log a lot of http requests with its request/response headers, data, query and etc. We are logging it with logging module (
So the problem is connected with junit-xml creation. Junit-xml reporter captures not only failed tests (<1%) but passed tests too (>99%) and it can crash the Jenkins process and freeze the runner-server for a while.
There are some ways to disable logs for failed tests like:
but no possibility to disable logs for passed test.
Right now we handle this with custom
So, maybe pytest needs an option for junit-xml that disables logs for passed tests and logs only failed, what do you think?
referenced this issue
Apr 5, 2019
Is there a use case for having logs for passed tests in the first place?