Skip to content
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

Tests logging #1602

Merged
merged 3 commits into from
Jan 24, 2025
Merged

Tests logging #1602

merged 3 commits into from
Jan 24, 2025

Conversation

swick
Copy link
Contributor

@swick swick commented Jan 24, 2025

Print everything to stdout/stderr. Currently the logging of all the templates never made it to the output of pytest, and the logging in tests/__init__.py ends up in a completely different section (the python log capture, instead of the stdout/stderr capture) which makes it hard to tell the order of things.

swick added 3 commits January 24, 2025 17:31
Instead, use the inherited stdout/stderr from pytest, like we do for
xdg-desktop-portal, xdg-document-portal and xdg-permission-store.
Outputting to stderr makes it show up with all the other messages when
running pytest with -s.
@GeorgesStavracas GeorgesStavracas added this to the 1.20 milestone Jan 24, 2025
@GeorgesStavracas GeorgesStavracas added the tests Test suite label Jan 24, 2025
@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Jan 24, 2025
Merged via the queue into flatpak:main with commit 37adc31 Jan 24, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants