-
Notifications
You must be signed in to change notification settings - Fork 241
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
Don't include any captured stdout/stderr/log output to the report #171
Comments
The |
|
This honestly seems like a bug to me, not an enhancement. |
what I understood is that So the enhancement would be adding the feature to read that arguments and do something. |
I think it makes sense for the plugin to ”obey” the flag.
…On 5 Sep 2019, 12:52 +0200, Bruno Rocha ***@***.***>, wrote:
what I understood is that --capture is a pytest argument not a pytest-html argument.
So the enhancement would be adding the feature to read that arguments and do something.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes, In terms of implementation, I am really very new to Pytest so take this with a grain of salt, but I noticed the same thing (capturing of log output despite use of |
I still think this is an enhancement, and a worthwhile one. Perhaps pytest should be more clear that the capture arguments only relate to the console logging, and that plugins are not required to respect them. If you disagree then I would suggest opening a bug against pytest that prevents plugins from having access to this content if the arguments are used. Either way, I don't think we want to duplicate these arguments for each plugin. |
I would like to tack on that this would be a great option. |
Any progress here? It's better if we could control disabling stdout or stderr or all. Wondering why captured stderr/log call contents are the same in my html report, I'm using xdist plugin |
FYI, I used the generated 1.thm |
How I use stdout, is to display comments/messages as each test case progresses, and it shows up in the html report. So please don't change that. Example output from html report, that each test case spits out: I like the idea of being able to disable/enable some or all of the capture. |
Its anoying to have logs captured in html report. The file size becomes >1GB. Kindly add the feature to disable log capturing in report |
Agreed. There should be a away disable each of out the outputs, so the html report does not include it...thereby keeping the file size smaller.
|
I just have found this issue and I am having a similar problem but maybe I should create another one. Let me know @davehunt . I created a
Is there a way to avoid log call? Since the option "--no-print-logs" was deprecated from older versions of pytest, the option "--show-capture-logs=no" does not apply in the same way. I have the latest versions:
My log definition:
Regards! |
This has been a long running issue. Would @gnikonorov or @ssbarnea have some time to just take a quick look to see if there's an easy/fast fix for this? |
I can take a look @BeyondEvil! |
From this code I understand that But |
I am still facing thi
I am also facing this issue. Is there any fix or workaround? Please help |
Do you have any solutions? I am also facing this issue, because the duplicated logs, it has difficult to check the failures via log. |
try 4.0.0rc4 |
Hi,
To reduce report file size, I'm trying to exclude any captured stdout/stderr/log output.
I'm running tests with the following command:
With this I still get the
Captured log call
section for every test no matter if it pass or not.So the question, how to not include any captured output to the report?
The text was updated successfully, but these errors were encountered: