You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enabling coloring in CI systems such as AppVeyor and Jenkins on Windows by passing --color=yes makes pytest use "console rewriting" for collection reporting, resulting in cluttered collecting messages like this:
(This is from a branch on my fork to showcase this).
Other than that colors show up fine.
I don't know if that's a problem with Windows in general or just that AppVeyor and Jenkins don't interpret \r output correctly (don't know about other CI systems).
Travis shows colors and handles the "collecting" messages just fine even without needing --color=yes, but I think this is a Travis only feature because the same doesn't seem to happen in drone.io.
I would like to fix this because it really makes using color on Windows CI unpractical, as depending on the number of tests there might be literally pages of "collecting" messages outweigh the benefits of having colors in the first place.
If no one comes with a better solution (perhaps I'm missing some detail), I propose either:
Add a new --show-collection-progress which may be used to enable/disable the use of \r to display collection progress. It might even default to False in CI systems.
Just disable the collection progress when running in a CI system.
If no one presents a better solution, I like option 2 because it doesn't introduce a new option which might be just noise for most users and fixes the problem out of the box.
The text was updated successfully, but these errors were encountered:
Enabling coloring in CI systems such as AppVeyor and Jenkins on Windows by passing
--color=yes
makes pytest use "console rewriting" for collection reporting, resulting in cluttered collecting messages like this:(This is from a branch on my fork to showcase this).
Other than that colors show up fine.
I don't know if that's a problem with Windows in general or just that AppVeyor and Jenkins don't interpret
\r
output correctly (don't know about other CI systems).Travis shows colors and handles the "collecting" messages just fine even without needing
--color=yes
, but I think this is a Travis only feature because the same doesn't seem to happen in drone.io.I would like to fix this because it really makes using color on Windows CI unpractical, as depending on the number of tests there might be literally pages of "collecting" messages outweigh the benefits of having colors in the first place.
If no one comes with a better solution (perhaps I'm missing some detail), I propose either:
--show-collection-progress
which may be used to enable/disable the use of\r
to display collection progress. It might even default toFalse
in CI systems.If no one presents a better solution, I like option 2 because it doesn't introduce a new option which might be just noise for most users and fixes the problem out of the box.
The text was updated successfully, but these errors were encountered: