8000 Use coloured logging in a TTY by Spacetown · Pull Request #887 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use coloured logging in a TTY #887

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

Merged
merged 3 commits into from
Feb 16, 2024
Merged

Conversation

Spacetown
Copy link
Member

Update the logging to use a coloured output if running in a TTY or the user forced it by setting --force-color in the CLI or by defining the environment variable FORCE_COLOR as described in http://force-color.org.
In the pipeline the color is forced (introduced for nox by #698). If a test is failing we get now a coloured output of gcovr execution.

@Spacetown Spacetown added this to the Upcoming release milestone Feb 16, 2024
Copy link
codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (52c88f0) 95.30% compared to head (ba2db84) 95.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #887      +/-   ##
==========================================
+ Coverage   95.30%   95.33%   +0.03%     
==========================================
  Files          54       54              
  Lines        4534     4544      +10     
  Branches      893      893              
==========================================
+ Hits         4321     4332      +11     
  Misses        130      130              
+ Partials       83       82       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Spacetown Spacetown marked this pull request as ready for review February 16, 2024 21:07
@Spacetown Spacetown merged commit 023dec1 into gcovr:main Feb 16, 2024
@Spacetown Spacetown deleted the improve_logging branch February 16, 2024 21:09
@Spacetown Spacetown removed this from the Upcoming release milestone Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0