-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
pytest: Enhance logging output with colors and summary #3629
Conversation
…p) or CLICOLOR_FORCE pytest: Add color output to gcc with `-fdiagnostics-color`
pytest: Show a short test summary info at end of tests
I finally removed the GCC colors since the builds fails with it, and don't fail if I remove it afterwards. I don't understand why, but since they are not super obvious, I'm kicking it out of the scope. |
This is a side PR from what I was working on simultaneously: adding ccache or sccache, whichever was better. For now, from the numbers I have, it isn't worth it for pytest, but for windows, it might be worth it:
Both can take 6 seconds before and after to push pull the cache. Cache from main can be used in PRs (in theory), but cache from PRs are scoped to the PR (ie: a PR can fall back to main's cache if it doesn't exist). I'm not decided yet and didn't manage to make sccache work, as it originally had better support on windows. |
To help read CI logs more easily, enabled colored output where possible (in CI only, for pytest workflow).
For pytest itself:
Images
Colored pip with cache misses:

For errors/warnings, some I intentionnaly added to see how it looked

Colored gcc:
Colored pytest:




