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

Reduce logged pytest output #621

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

tommbendall
Copy link
Contributor

This PR attempts to reduce the amount of output from our pytest runs.

Currently, for failing tests, pytest will print (to terminal) our logged messages not once but twice. As the default log level is DEBUG, this actually can make it hard to find the traceback from failed tests.

As we already store (and upload in our CI) the Gusto logs which contain all of the log calls, I think it might be more helpful just to suppress pytest from printing whatever Gusto logs.

I think the simplest way to do this is by adding --show-capture=no to pytest calls.

@tommbendall tommbendall added tidying Involves tidying up code admin Involves admin of the repository or associated website labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Involves admin of the repository or associated website tidying Involves tidying up code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant