pytest-reportlog icon indicating copy to clipboard operation
pytest-reportlog copied to clipboard

Exclude stdout/stderr log sections when --report-log-exclude-logs-on-passed-tests is given

Open ento opened this issue 2 months ago • 4 comments

I noticed that the size of the log file written by this plugin was 100MB+, and sections like "Captured stderr call" were included, even though I'd specified the --report-log-exclude-logs-on-passed-tests flag.

Would it make sense to make the flag also exclude captured outputs too, in addition to captured logs?

If I'm reading it right, junitxml's log_passing_tests setting covers both stdout/stderr outputs and logging outputs: https://github.com/pytest-dev/pytest/blob/9.0.2/src/_pytest/junitxml.py#L159-L180

ento avatar Dec 11 '25 03:12 ento