Skip to content

Conversation

@ento
Copy link

@ento ento commented Dec 11, 2025

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

@RonnyPfannschmidt
Copy link
Member

this constitutes as breaking change - perhaps a option to configure whats skipped

also i wonder why your output is so big - because i don't want this option in here if all it does is work around missconfigured logging thats using the stderr fallback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants